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

Unified Diff: cloud_print/service/win/chrome_launcher.cc

Issue 735053002: Prefix CommandLine usage with base namespace (Part 7: cloud_print/) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « cloud_print/gcp20/prototype/privet_http_server.cc ('k') | cloud_print/service/win/cloud_print_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/service/win/chrome_launcher.cc
diff --git a/cloud_print/service/win/chrome_launcher.cc b/cloud_print/service/win/chrome_launcher.cc
index 5dd876d30bef6b58fdde857f04c65a8fd2ca8339..d63dc8f0b4000b7502d35ea8c99599105e87bf11 100644
--- a/cloud_print/service/win/chrome_launcher.cc
+++ b/cloud_print/service/win/chrome_launcher.cc
@@ -67,7 +67,7 @@ void CloseChrome(HANDLE process, DWORD thread_id) {
ShutdownChrome(process, thread_id);
}
-bool LaunchProcess(const CommandLine& cmdline,
+bool LaunchProcess(const base::CommandLine& cmdline,
base::win::ScopedHandle* process_handle,
DWORD* thread_id) {
STARTUPINFO startup_info = {};
@@ -149,7 +149,7 @@ void DeleteAutorunKeys(const base::FilePath& user_data_dir) {
base::win::RegistryValueIterator value(HKEY_CURRENT_USER, kAutoRunKeyPath);
for (; value.Valid(); ++value) {
if (value.Type() == REG_SZ && value.Value()) {
- CommandLine cmd = CommandLine::FromString(value.Value());
+ base::CommandLine cmd = base::CommandLine::FromString(value.Value());
if (cmd.GetSwitchValueASCII(switches::kProcessType) ==
switches::kServiceProcess &&
cmd.HasSwitch(switches::kUserDataDir)) {
@@ -201,7 +201,7 @@ void ChromeLauncher::Run() {
base::FilePath chrome_path = chrome_launcher_support::GetAnyChromePath();
if (!chrome_path.empty()) {
- CommandLine cmd(chrome_path);
+ base::CommandLine cmd(chrome_path);
CopyChromeSwitchesFromCurrentProcess(&cmd);
// Required switches.
@@ -278,7 +278,7 @@ std::string ChromeLauncher::CreateServiceStateFile(
return std::string();
}
- CommandLine cmd(chrome_path);
+ base::CommandLine cmd(chrome_path);
CopyChromeSwitchesFromCurrentProcess(&cmd);
cmd.AppendSwitchPath(switches::kUserDataDir, temp_user_data.path());
cmd.AppendSwitchPath(switches::kCloudPrintSetupProxy, printers_file);
« no previous file with comments | « cloud_print/gcp20/prototype/privet_http_server.cc ('k') | cloud_print/service/win/cloud_print_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698