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

Unified Diff: chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util.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: chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util.cc b/chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util.cc
index 95c094b28df8fa54b332a76144b33d49d82971bc..deafbea36e52984804a5cd58ed477214cb2352e6 100644
--- a/chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util.cc
+++ b/chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util.cc
@@ -46,22 +46,24 @@ SyncStatusCode MigrateDatabaseFromV4ToV3(leveldb::DB* db) {
std::string key = itr->key().ToString();
// Do nothing for valid entries in both versions.
- if (StartsWithASCII(key, kServiceMetadataKey, true) ||
- StartsWithASCII(key, kFileMetadataKeyPrefix, true) ||
- StartsWithASCII(key, kFileTrackerKeyPrefix, true)) {
+ if (base::StartsWithASCII(key, kServiceMetadataKey, true) ||
+ base::StartsWithASCII(key, kFileMetadataKeyPrefix, true) ||
+ base::StartsWithASCII(key, kFileTrackerKeyPrefix, true)) {
continue;
}
// Drop entries used in version 4 only.
- if (StartsWithASCII(key, kAppRootIDByAppIDKeyPrefix, true) ||
- StartsWithASCII(key, kActiveTrackerIDByFileIDKeyPrefix, true) ||
- StartsWithASCII(key, kTrackerIDByFileIDKeyPrefix, true) ||
- StartsWithASCII(key, kMultiTrackerByFileIDKeyPrefix, true) ||
- StartsWithASCII(key, kActiveTrackerIDByParentAndTitleKeyPrefix, true) ||
- StartsWithASCII(key, kTrackerIDByParentAndTitleKeyPrefix, true) ||
- StartsWithASCII(key, kMultiBackingParentAndTitleKeyPrefix, true) ||
- StartsWithASCII(key, kDirtyIDKeyPrefix, true) ||
- StartsWithASCII(key, kDemotedDirtyIDKeyPrefix, true)) {
+ if (base::StartsWithASCII(key, kAppRootIDByAppIDKeyPrefix, true) ||
+ base::StartsWithASCII(key, kActiveTrackerIDByFileIDKeyPrefix, true) ||
+ base::StartsWithASCII(key, kTrackerIDByFileIDKeyPrefix, true) ||
+ base::StartsWithASCII(key, kMultiTrackerByFileIDKeyPrefix, true) ||
+ base::StartsWithASCII(key, kActiveTrackerIDByParentAndTitleKeyPrefix,
+ true) ||
+ base::StartsWithASCII(key, kTrackerIDByParentAndTitleKeyPrefix, true) ||
+ base::StartsWithASCII(key, kMultiBackingParentAndTitleKeyPrefix,
+ true) ||
+ base::StartsWithASCII(key, kDirtyIDKeyPrefix, true) ||
+ base::StartsWithASCII(key, kDemotedDirtyIDKeyPrefix, true)) {
write_batch.Delete(key);
continue;
}

Powered by Google App Engine
This is Rietveld 408576698