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

Side by Side Diff: cloud_print/service/win/installer.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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cloud_print/service/win/installer.h" 5 #include "cloud_print/service/win/installer.h"
6 6
7 #include <winerror.h> 7 #include <winerror.h>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 70 }
71 71
72 void DeleteShortcuts() { 72 void DeleteShortcuts() {
73 DeleteShortcut(base::DIR_COMMON_START_MENU, true); 73 DeleteShortcut(base::DIR_COMMON_START_MENU, true);
74 DeleteShortcut(base::DIR_COMMON_DESKTOP, false); 74 DeleteShortcut(base::DIR_COMMON_DESKTOP, false);
75 } 75 }
76 76
77 } // namespace 77 } // namespace
78 78
79 HRESULT ProcessInstallerSwitches() { 79 HRESULT ProcessInstallerSwitches() {
80 const CommandLine& command_line(*CommandLine::ForCurrentProcess()); 80 const base::CommandLine& command_line(
81 *base::CommandLine::ForCurrentProcess());
81 82
82 if (command_line.HasSwitch(kInstallSwitch)) { 83 if (command_line.HasSwitch(kInstallSwitch)) {
83 base::FilePath old_location = 84 base::FilePath old_location =
84 cloud_print::GetInstallLocation(kGoogleUpdateId); 85 cloud_print::GetInstallLocation(kGoogleUpdateId);
85 86
86 cloud_print::CreateUninstallKey( 87 cloud_print::CreateUninstallKey(
87 kGoogleUpdateId, cloud_print::LoadLocalString(IDS_FULL_PRODUCT_NAME), 88 kGoogleUpdateId, cloud_print::LoadLocalString(IDS_FULL_PRODUCT_NAME),
88 kUninstallSwitch); 89 kUninstallSwitch);
89 90
90 ServiceController controller; 91 ServiceController controller;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 : public ATL::CAtlExeModuleT<CloudPrintServiceSetupModule> { 133 : public ATL::CAtlExeModuleT<CloudPrintServiceSetupModule> {
133 }; 134 };
134 135
135 CloudPrintServiceSetupModule _AtlModule; 136 CloudPrintServiceSetupModule _AtlModule;
136 137
137 int WINAPI WinMain(__in HINSTANCE hInstance, 138 int WINAPI WinMain(__in HINSTANCE hInstance,
138 __in HINSTANCE hPrevInstance, 139 __in HINSTANCE hPrevInstance,
139 __in LPSTR lpCmdLine, 140 __in LPSTR lpCmdLine,
140 __in int nCmdShow) { 141 __in int nCmdShow) {
141 base::AtExitManager at_exit; 142 base::AtExitManager at_exit;
142 CommandLine::Init(0, NULL); 143 base::CommandLine::Init(0, NULL);
143 return ProcessInstallerSwitches(); 144 return ProcessInstallerSwitches();
144 } 145 }
OLDNEW
« no previous file with comments | « cloud_print/service/win/cloud_print_service_config.cc ('k') | cloud_print/service/win/service_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698