Replace chrome string util with android base ones
Replaces <base/stringutils.h> with <android-base/stringutils.h>
Replaces base::StringPrintf with android::base::StringPrintf
This change is very mechanical, no change in program behavior only
library functions are being replaced.
Test: th
Change-Id: Ie5797a27ea3cdd3ff537216dc39dffeac052565e
diff --git a/aosp/dynamic_partition_control_android.cc b/aosp/dynamic_partition_control_android.cc
index af46b35..822b05e 100644
--- a/aosp/dynamic_partition_control_android.cc
+++ b/aosp/dynamic_partition_control_android.cc
@@ -32,7 +32,7 @@
#include <base/files/file_util.h>
#include <base/logging.h>
#include <base/strings/string_util.h>
-#include <base/strings/stringprintf.h>
+#include <android-base/stringprintf.h>
#include <bootloader_message/bootloader_message.h>
#include <fs_mgr.h>
#include <fs_mgr_dm_linear.h>
@@ -57,6 +57,7 @@
using android::base::GetBoolProperty;
using android::base::GetProperty;
using android::base::Join;
+using android::base::StringPrintf;
using android::dm::DeviceMapper;
using android::dm::DmDeviceState;
using android::fs_mgr::CreateLogicalPartition;
@@ -72,7 +73,6 @@
using android::snapshot::SnapshotManager;
using android::snapshot::SnapshotManagerStub;
using android::snapshot::UpdateState;
-using base::StringPrintf;
namespace chromeos_update_engine {
@@ -943,7 +943,8 @@
}
case SpaceLimit::ERROR_IF_EXCEEDED_SUPER: {
if (sum_groups > full_space) {
- LOG(ERROR) << base::StringPrintf(fmt, sum_groups, "", full_space);
+ LOG(ERROR) << android::base::StringPrintf(
+ fmt, sum_groups, "", full_space);
return false;
}
break;