Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

Unified Diff: prefs.cc

Issue 3170010: [update_engine] Update to use not-hideously-old logging API from chrome (Closed) Base URL: http://src.chromium.org/git/update_engine.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « omaha_request_action.cc ('k') | subprocess.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: prefs.cc
diff --git a/prefs.cc b/prefs.cc
index 39f5908d6b719ddbd00b3fccbe6fb4c80578f080..7e98e795cb8898160cdbb84596278c8c97f0d640 100644
--- a/prefs.cc
+++ b/prefs.cc
@@ -6,6 +6,7 @@
#include "base/file_util.h"
#include "base/logging.h"
+#include "base/string_number_conversions.h"
#include "base/string_util.h"
#include "update_engine/utils.h"
@@ -45,12 +46,12 @@ bool Prefs::GetInt64(const string& key, int64_t* value) {
string str_value;
TEST_AND_RETURN_FALSE(GetString(key, &str_value));
TrimWhitespaceASCII(str_value, TRIM_ALL, &str_value);
- TEST_AND_RETURN_FALSE(StringToInt64(str_value, value));
+ TEST_AND_RETURN_FALSE(base::StringToInt64(str_value, value));
return true;
}
bool Prefs::SetInt64(const string& key, const int64_t value) {
- return SetString(key, Int64ToString(value));
+ return SetString(key, base::Int64ToString(value));
}
bool Prefs::GetFileNameForKey(const std::string& key, FilePath* filename) {
« no previous file with comments | « omaha_request_action.cc ('k') | subprocess.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698