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/logging_android.cc b/aosp/logging_android.cc
index 1a0fa9a..d1f10d6 100644
--- a/aosp/logging_android.cc
+++ b/aosp/logging_android.cc
@@ -33,7 +33,7 @@
#include <base/files/dir_reader_posix.h>
#include <base/logging.h>
#include <base/strings/string_util.h>
-#include <base/strings/stringprintf.h>
+#include <android-base/stringprintf.h>
#include <log/log.h>
#include "android/log.h"
@@ -93,9 +93,10 @@
string SetupLogFile(const string& kLogsRoot) {
DeleteOldLogs(kLogsRoot);
- return base::StringPrintf("%s/update_engine.%s",
- kLogsRoot.c_str(),
- utils::GetTimeAsString(::time(nullptr)).c_str());
+ return android::base::StringPrintf(
+ "%s/update_engine.%s",
+ kLogsRoot.c_str(),
+ utils::GetTimeAsString(::time(nullptr)).c_str());
}
const char* LogPriorityToCString(int priority) {