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

Unified Diff: chrome/browser/ui/browser.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/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 9d0877b5b7bf8dc8fac2839edcb9f625caa3764d..af09a0c5eea9a21db4c2a51e25110d29cf52e4eb 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -244,13 +244,13 @@ BrowserWindow* CreateBrowserWindow(Browser* browser) {
// Is the fast tab unload experiment enabled?
bool IsFastTabUnloadEnabled() {
- return CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableFastUnload);
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableFastUnload);
}
bool IsWebAppFrameEnabled() {
- return CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableWebAppFrame);
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableWebAppFrame);
}
} // namespace
@@ -1151,8 +1151,9 @@ bool Browser::CanOverscrollContent() const {
if (!allow_overscroll)
return false;
- const std::string value = CommandLine::ForCurrentProcess()->
- GetSwitchValueASCII(switches::kOverscrollHistoryNavigation);
+ const std::string value =
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ switches::kOverscrollHistoryNavigation);
bool overscroll_enabled = value != "0";
if (!overscroll_enabled)
return false;
@@ -1354,8 +1355,9 @@ WebContents* Browser::OpenURLFromTab(WebContents* source,
params.disposition == NEW_FOREGROUND_TAB ||
params.disposition == NEW_BACKGROUND_TAB ||
params.disposition == NEW_WINDOW) &&
- !params.user_gesture && !CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisablePopupBlocking)) {
+ !params.user_gesture &&
+ !base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisablePopupBlocking)) {
if (popup_blocker_helper->MaybeBlockPopup(nav_params,
WebWindowFeatures())) {
return NULL;
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_context_menu_controller.cc ('k') | chrome/browser/ui/browser_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698