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

Unified Diff: components/gcm_driver/registration_info.cc

Issue 1242023005: Remove legacy StartsWithASCII function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: y Created 5 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
Index: components/gcm_driver/registration_info.cc
diff --git a/components/gcm_driver/registration_info.cc b/components/gcm_driver/registration_info.cc
index 90bf4e34894777eaa8942ac8a7f56f6fce1ad904..6fd9266c891de2cca355a64a437fbaf8cf7fe0cd 100644
--- a/components/gcm_driver/registration_info.cc
+++ b/components/gcm_driver/registration_info.cc
@@ -22,8 +22,8 @@ scoped_ptr<RegistrationInfo> RegistrationInfo::BuildFromString(
std::string* registration_id) {
scoped_ptr<RegistrationInfo> registration;
- if (base::StartsWithASCII(serialzied_key, kInsanceIDSerializationPrefix,
- true))
+ if (base::StartsWith(serialzied_key, kInsanceIDSerializationPrefix,
+ base::CompareCase::SENSITIVE))
registration.reset(new InstanceIDTokenInfo);
else
registration.reset(new GCMRegistrationInfo);
@@ -184,8 +184,8 @@ bool InstanceIDTokenInfo::Deserialize(
if (serialized_key.empty() || serialized_value.empty())
return false;
- if (!base::StartsWithASCII(serialized_key, kInsanceIDSerializationPrefix,
- true))
+ if (!base::StartsWith(serialized_key, kInsanceIDSerializationPrefix,
+ base::CompareCase::SENSITIVE))
return false;
std::vector<std::string> fields = base::SplitString(
« 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