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

Unified Diff: chrome/browser/ui/views/frame/browser_view.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/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 6c1539f7d6d8a1b206b5d9796a7656a7d92194e9..8f58f130ce4f125cc8155d85a4c890f2d8d7a42b 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1840,7 +1840,8 @@ bool BrowserView::CanClose() {
return false;
bool fast_tab_closing_enabled =
- CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableFastUnload);
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableFastUnload);
if (!browser_->tab_strip_model()->empty()) {
// Tab strip isn't empty. Hide the frame (so it appears to have closed
@@ -2002,7 +2003,7 @@ void BrowserView::InitViews() {
// Start a hung plugin window detector for this browser object (as long as
// hang detection is not disabled).
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableHangMonitor)) {
InitHangMonitor();
}
@@ -2308,7 +2309,7 @@ void BrowserView::ProcessFullscreen(bool fullscreen,
bool BrowserView::ShouldUseImmersiveFullscreenForUrl(const GURL& url) const {
// Kiosk mode needs the whole screen, and if we're not in an Ash desktop
// immersive fullscreen doesn't exist.
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode) ||
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode) ||
browser()->host_desktop_type() != chrome::HOST_DESKTOP_TYPE_ASH) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698