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

Unified Diff: chrome/test/sync/engine/test_id_factory.h

Issue 3056029: Move the number conversions from string_util to a new file.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 | « chrome/test/startup/startup_test.cc ('k') | chrome/test/ui/npapi_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/sync/engine/test_id_factory.h
===================================================================
--- chrome/test/sync/engine/test_id_factory.h (revision 54340)
+++ chrome/test/sync/engine/test_id_factory.h (working copy)
@@ -10,7 +10,7 @@
#include <string>
-#include "base/string_util.h"
+#include "base/string_number_conversions.h"
#include "chrome/browser/sync/syncable/syncable_id.h"
namespace browser_sync {
@@ -33,9 +33,9 @@
if (value == 0)
return root();
else if (value < 0)
- return syncable::Id::CreateFromClientString(Int64ToString(value));
+ return syncable::Id::CreateFromClientString(base::Int64ToString(value));
else
- return syncable::Id::CreateFromServerId(Int64ToString(value));
+ return syncable::Id::CreateFromServerId(base::Int64ToString(value));
}
// Create a local ID from a name.
@@ -51,13 +51,13 @@
// Autogenerate a fresh local ID.
syncable::Id NewLocalId() {
return syncable::Id::CreateFromClientString(
- std::string("_auto ") + IntToString(-next_value()));
+ std::string("_auto ") + base::IntToString(-next_value()));
}
// Autogenerate a fresh server ID.
syncable::Id NewServerId() {
return syncable::Id::CreateFromServerId(
- std::string("_auto ") + IntToString(next_value()));
+ std::string("_auto ") + base::IntToString(next_value()));
}
private:
« no previous file with comments | « chrome/test/startup/startup_test.cc ('k') | chrome/test/ui/npapi_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698