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

Unified Diff: components/gcm_driver/registration_info.cc

Issue 1172183002: Move StartsWith[ASCII] to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util3
Patch Set: merger Created 5 years, 6 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
Index: components/gcm_driver/registration_info.cc
diff --git a/components/gcm_driver/registration_info.cc b/components/gcm_driver/registration_info.cc
index 31f412d409238adc72910de5ee1cd6aa2f10fd9e..5bae2fd49c2325107b96efeac816cd397da21409 100644
--- a/components/gcm_driver/registration_info.cc
+++ b/components/gcm_driver/registration_info.cc
@@ -21,7 +21,8 @@ scoped_ptr<RegistrationInfo> RegistrationInfo::BuildFromString(
std::string* registration_id) {
scoped_ptr<RegistrationInfo> registration;
- if (StartsWithASCII(serialzied_key, kInsanceIDSerializationPrefix, true))
+ if (base::StartsWithASCII(serialzied_key, kInsanceIDSerializationPrefix,
+ true))
registration.reset(new InstanceIDTokenInfo);
else
registration.reset(new GCMRegistrationInfo);
@@ -182,7 +183,8 @@ bool InstanceIDTokenInfo::Deserialize(
if (serialized_key.empty() || serialized_value.empty())
return false;
- if (!StartsWithASCII(serialized_key, kInsanceIDSerializationPrefix, true))
+ if (!base::StartsWithASCII(serialized_key, kInsanceIDSerializationPrefix,
+ true))
return false;
std::vector<std::string> fields;
« no previous file with comments | « components/favicon/core/favicon_driver_impl.cc ('k') | components/google/core/browser/google_url_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698