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

Unified Diff: chrome/browser/signin/easy_unlock_service.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/signin/easy_unlock_service.cc
diff --git a/chrome/browser/signin/easy_unlock_service.cc b/chrome/browser/signin/easy_unlock_service.cc
index d81c82ff43d3399c821dd45e87892a3e918d437b..495b30cf61cecc5f7414245ac5612e4e92becec1 100644
--- a/chrome/browser/signin/easy_unlock_service.cc
+++ b/chrome/browser/signin/easy_unlock_service.cc
@@ -85,7 +85,7 @@ EasyUnlockService* EasyUnlockService::GetForUser(
// static
bool EasyUnlockService::IsSignInEnabled() {
- return !CommandLine::ForCurrentProcess()->HasSwitch(
+ return !base::CommandLine::ForCurrentProcess()->HasSwitch(
proximity_auth::switches::kDisableEasyUnlock);
}
@@ -261,7 +261,7 @@ bool EasyUnlockService::IsAllowed() {
if (shut_down_)
return false;
- if (CommandLine::ForCurrentProcess()->HasSwitch(
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
proximity_auth::switches::kDisableEasyUnlock)) {
return false;
}
@@ -500,7 +500,7 @@ void EasyUnlockService::LoadApp() {
#if defined(OS_CHROMEOS)
// TODO(xiyuan): Remove this when the app is bundled with chrome.
if (!base::SysInfo::IsRunningOnChromeOS() &&
- !CommandLine::ForCurrentProcess()->HasSwitch(
+ !base::CommandLine::ForCurrentProcess()->HasSwitch(
proximity_auth::switches::kForceLoadEasyUnlockAppInTests)) {
return;
}
@@ -514,7 +514,8 @@ void EasyUnlockService::LoadApp() {
#ifndef NDEBUG
// Only allow app path override switch for debug build.
- const CommandLine* command_line = CommandLine::ForCurrentProcess();
+ const base::CommandLine* command_line =
+ base::CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(switches::kEasyUnlockAppPath)) {
easy_unlock_path =
command_line->GetSwitchValuePath(switches::kEasyUnlockAppPath);
« no previous file with comments | « chrome/browser/signin/chrome_signin_client.cc ('k') | chrome/browser/signin/easy_unlock_service_browsertest_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698