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

Unified Diff: chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc

Issue 1214183008: Update StartsWith calls to use new versions in chrome and content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc b/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
index b7624c8f3f41b6d871867a76dc6dc86e50b2710f..6922bbdd8f4a4d3188d140f3c0f5f2f1253ba52d 100644
--- a/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
+++ b/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
@@ -144,7 +144,7 @@ SyncStatusCode DriveApiErrorCodeToSyncStatusCode(
bool RemovePrefix(const std::string& str, const std::string& prefix,
std::string* out) {
- if (!base::StartsWithASCII(str, prefix, true)) {
+ if (!base::StartsWith(str, prefix, base::CompareCase::SENSITIVE)) {
if (out)
*out = str;
return false;

Powered by Google App Engine
This is Rietveld 408576698