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

Unified Diff: chrome/app_shim/win/app_shim_main.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_shim/chrome_main_app_mode_mac.mm ('k') | chrome/browser/about_flags.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app_shim/win/app_shim_main.cc
diff --git a/chrome/app_shim/win/app_shim_main.cc b/chrome/app_shim/win/app_shim_main.cc
index 4cad5557e19f1e06b1aaed29f033f2889c2e0b44..60a62aca9fc3401fb212b043e9586e6cc956c4de 100644
--- a/chrome/app_shim/win/app_shim_main.cc
+++ b/chrome/app_shim/win/app_shim_main.cc
@@ -47,7 +47,7 @@ int WINAPI wWinMain(HINSTANCE instance,
HINSTANCE prev_instance,
wchar_t* /*command_line*/,
int show_command) {
- CommandLine::Init(0, nullptr);
+ base::CommandLine::Init(0, nullptr);
// Log to stderr. Otherwise it will log to a file by default.
logging::LoggingSettings logging_settings;
@@ -63,12 +63,12 @@ int WINAPI wWinMain(HINSTANCE instance,
LOG(ERROR) << "Could not find chrome.exe path in the registry.";
return kNoProgram;
}
- CommandLine command_line(chrome_path);
+ base::CommandLine command_line(chrome_path);
// Get the command-line arguments for the subprocess, consisting of the
// arguments (but not switches) to this binary. This gets everything after the
// "--".
- for (const auto& arg : CommandLine::ForCurrentProcess()->GetArgs())
+ for (const auto& arg : base::CommandLine::ForCurrentProcess()->GetArgs())
command_line.AppendArgNative(arg);
if (!base::LaunchProcess(command_line, base::LaunchOptions()).IsValid()) {
« no previous file with comments | « chrome/app_shim/chrome_main_app_mode_mac.mm ('k') | chrome/browser/about_flags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698