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

Unified Diff: chrome/browser/ui/window_sizer/window_sizer.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
« no previous file with comments | « chrome/browser/ui/webui/version_ui.cc ('k') | chrome/browser/ui/window_sizer/window_sizer_ash_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/window_sizer/window_sizer.cc
diff --git a/chrome/browser/ui/window_sizer/window_sizer.cc b/chrome/browser/ui/window_sizer/window_sizer.cc
index 089764740a8129b3ddbc6152885a3affc107fd3c..825176b552248c4d98ff61dd4483945899eb3656 100644
--- a/chrome/browser/ui/window_sizer/window_sizer.cc
+++ b/chrome/browser/ui/window_sizer/window_sizer.cc
@@ -157,7 +157,8 @@ class DefaultTargetDisplayProvider : public WindowSizer::TargetDisplayProvider {
// Revisit and address.
#if defined(OS_WIN)
force_ash = ash::Shell::HasInstance() &&
- CommandLine::ForCurrentProcess()->HasSwitch(switches::kViewerConnect);
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kViewerConnect);
#endif
// Use the target display on ash.
if (chrome::ShouldOpenAshOnStartup() || force_ash) {
@@ -431,7 +432,8 @@ ui::WindowShowState WindowSizer::GetWindowDefaultShowState() const {
if (show_state)
return browser_->initial_show_state();
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kStartMaximized))
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kStartMaximized))
return ui::SHOW_STATE_MAXIMIZED;
if (browser_->initial_show_state() != ui::SHOW_STATE_DEFAULT)
« no previous file with comments | « chrome/browser/ui/webui/version_ui.cc ('k') | chrome/browser/ui/window_sizer/window_sizer_ash_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698