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

Unified Diff: chrome/app/chrome_exe_main_win.cc

Issue 819133004: 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/app/chrome_crash_reporter_client_mac.mm ('k') | chrome/app/chrome_main_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_exe_main_win.cc
diff --git a/chrome/app/chrome_exe_main_win.cc b/chrome/app/chrome_exe_main_win.cc
index b09a76b7e710301e197eb249fdb62eeb0d9c049f..1ef4082306931f59e57cc7da9fcaec418013d911 100644
--- a/chrome/app/chrome_exe_main_win.cc
+++ b/chrome/app/chrome_exe_main_win.cc
@@ -43,11 +43,11 @@ bool IsFastStartSwitch(const std::string& command_line_switch) {
return false;
}
-bool ContainsNonFastStartFlag(const CommandLine& command_line) {
- const CommandLine::SwitchMap& switches = command_line.GetSwitches();
+bool ContainsNonFastStartFlag(const base::CommandLine& command_line) {
+ const base::CommandLine::SwitchMap& switches = command_line.GetSwitches();
if (switches.size() > arraysize(kFastStartSwitches))
return true;
- for (CommandLine::SwitchMap::const_iterator it = switches.begin();
+ for (base::CommandLine::SwitchMap::const_iterator it = switches.begin();
it != switches.end(); ++it) {
if (!IsFastStartSwitch(it->first))
return true;
@@ -55,7 +55,7 @@ bool ContainsNonFastStartFlag(const CommandLine& command_line) {
return false;
}
-bool AttemptFastNotify(const CommandLine& command_line) {
+bool AttemptFastNotify(const base::CommandLine& command_line) {
if (ContainsNonFastStartFlag(command_line))
return false;
@@ -138,7 +138,7 @@ int main() {
SignalChromeElf();
// Initialize the commandline singleton from the environment.
- CommandLine::Init(0, NULL);
+ base::CommandLine::Init(0, NULL);
// The exit manager is in charge of calling the dtors of singletons.
base::AtExitManager exit_manager;
@@ -148,7 +148,7 @@ int main() {
if (base::win::GetVersion() >= base::win::VERSION_WIN7)
EnableHighDPISupport();
- if (AttemptFastNotify(*CommandLine::ForCurrentProcess()))
+ if (AttemptFastNotify(*base::CommandLine::ForCurrentProcess()))
return 0;
// Load and launch the chrome dll. *Everything* happens inside.
« no previous file with comments | « chrome/app/chrome_crash_reporter_client_mac.mm ('k') | chrome/app/chrome_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698