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

Unified Diff: chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.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/ui/cocoa/apps/quit_with_apps_controller_mac.cc
diff --git a/chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc b/chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc
index f48afaa52058b9043ede0cec4936b26f1b349a54..8054c2727c4b3e07462fd6c276a4a4c9b93259d1 100644
--- a/chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc
+++ b/chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc
@@ -48,8 +48,9 @@ QuitWithAppsController::QuitWithAppsController()
: notification_profile_(NULL), suppress_for_session_(false) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
- hosted_app_quit_notification_ = CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kHostedAppQuitNotification);
+ hosted_app_quit_notification_ =
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kHostedAppQuitNotification);
// There is only ever one notification to replace, so use the same replace_id
// each time.
@@ -124,8 +125,8 @@ bool QuitWithAppsController::ShouldQuit() {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
// Quit immediately if this is a test.
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kTestType) &&
- !CommandLine::ForCurrentProcess()->HasSwitch(
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kTestType) &&
+ !base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kAppsKeepChromeAliveInTests)) {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698