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

Unified Diff: chrome/browser/sync/backup_rollback_controller.cc

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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/backup_rollback_controller.cc
diff --git a/chrome/browser/sync/backup_rollback_controller.cc b/chrome/browser/sync/backup_rollback_controller.cc
index ab112779e11b390c04939920cc3c433a9836624d..fdef5cb566ba16e336d281ccbea6bd3ba3a9309d 100644
--- a/chrome/browser/sync/backup_rollback_controller.cc
+++ b/chrome/browser/sync/backup_rollback_controller.cc
@@ -52,7 +52,7 @@ bool BackupRollbackController::StartRollback() {
return false;
// Don't roll back if disabled or user is signed in.
- if (CommandLine::ForCurrentProcess()->HasSwitch(
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kSyncDisableRollback) ||
!signin_->GetEffectiveUsername().empty()) {
sync_prefs_->SetRemainingRollbackTries(0);
@@ -86,9 +86,9 @@ bool BackupRollbackController::IsBackupEnabled() {
const std::string group_name =
base::FieldTrialList::FindFullName(kSyncBackupFinchName);
- if (CommandLine::ForCurrentProcess()->HasSwitch(
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kSyncDisableBackup) ||
- group_name == kSyncBackupFinchDisabled) {
+ group_name == kSyncBackupFinchDisabled) {
return false;
}
return true;

Powered by Google App Engine
This is Rietveld 408576698