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

Side by Side Diff: chrome/service/cloud_print/cloud_print_proxy.cc

Issue 864163003: Rename base::Process::pid() to Pid() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/service/cloud_print/cloud_print_proxy.h" 5 #include "chrome/service/cloud_print/cloud_print_proxy.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 27 matching lines...) Expand all
38 *base::CommandLine::ForCurrentProcess(); 38 *base::CommandLine::ForCurrentProcess();
39 base::FilePath user_data_dir = 39 base::FilePath user_data_dir =
40 process_command_line.GetSwitchValuePath(switches::kUserDataDir); 40 process_command_line.GetSwitchValuePath(switches::kUserDataDir);
41 if (!user_data_dir.empty()) 41 if (!user_data_dir.empty())
42 cmd_line.AppendSwitchPath(switches::kUserDataDir, user_data_dir); 42 cmd_line.AppendSwitchPath(switches::kUserDataDir, user_data_dir);
43 cmd_line.AppendSwitch(switch_string); 43 cmd_line.AppendSwitch(switch_string);
44 44
45 #if defined(OS_POSIX) && !defined(OS_MACOSX) 45 #if defined(OS_POSIX) && !defined(OS_MACOSX)
46 base::Process process = base::LaunchProcess(cmd_line, base::LaunchOptions()); 46 base::Process process = base::LaunchProcess(cmd_line, base::LaunchOptions());
47 if (process.IsValid()) 47 if (process.IsValid())
48 base::EnsureProcessGetsReaped(process.pid()); 48 base::EnsureProcessGetsReaped(process.Pid());
49 #else 49 #else
50 base::LaunchOptions launch_options; 50 base::LaunchOptions launch_options;
51 #if defined(OS_WIN) 51 #if defined(OS_WIN)
52 launch_options.force_breakaway_from_job_ = true; 52 launch_options.force_breakaway_from_job_ = true;
53 #endif // OS_WIN 53 #endif // OS_WIN
54 base::LaunchProcess(cmd_line, launch_options); 54 base::LaunchProcess(cmd_line, launch_options);
55 #endif 55 #endif
56 } 56 }
57 57
58 void CheckCloudPrintProxyPolicyInBrowser() { 58 void CheckCloudPrintProxyPolicyInBrowser() {
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 } 287 }
288 288
289 void CloudPrintProxy::ShutdownBackend() { 289 void CloudPrintProxy::ShutdownBackend() {
290 DCHECK(CalledOnValidThread()); 290 DCHECK(CalledOnValidThread());
291 if (backend_.get()) 291 if (backend_.get())
292 backend_->Shutdown(); 292 backend_->Shutdown();
293 backend_.reset(); 293 backend_.reset();
294 } 294 }
295 295
296 } // namespace cloud_print 296 } // namespace cloud_print
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698