| OLD | NEW |
| 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 "cloud_print/service/win/chrome_launcher.h" | 5 #include "cloud_print/service/win/chrome_launcher.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/process.h" | 10 #include "base/process.h" |
| 11 #include "base/process_util.h" | 11 #include "base/process_util.h" |
| 12 #include "base/win/registry.h" | 12 #include "base/win/registry.h" |
| 13 #include "base/win/scoped_handle.h" | 13 #include "base/win/scoped_handle.h" |
| 14 #include "base/win/scoped_process_information.h" | 14 #include "base/win/scoped_process_information.h" |
| 15 #include "cloud_print/service/win/service_switches.h" | 15 #include "cloud_print/service/service_switches.h" |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 const wchar_t kChromeRegClientStateKey[] = | 19 const wchar_t kChromeRegClientStateKey[] = |
| 20 L"Software\\Google\\Update\\ClientState\\" | 20 L"Software\\Google\\Update\\ClientState\\" |
| 21 L"{8A69D345-D564-463c-AFF1-A69D9E530F96}"; | 21 L"{8A69D345-D564-463c-AFF1-A69D9E530F96}"; |
| 22 | 22 |
| 23 const wchar_t kGoogleChromeExePath[] = | 23 const wchar_t kGoogleChromeExePath[] = |
| 24 L"Google\\Chrome\\Application\\chrome.exe"; | 24 L"Google\\Chrome\\Application\\chrome.exe"; |
| 25 | 25 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 } | 163 } |
| 164 } | 164 } |
| 165 } | 165 } |
| 166 | 166 |
| 167 if (file_util::PathExists(chrome_exe_path)) | 167 if (file_util::PathExists(chrome_exe_path)) |
| 168 return chrome_exe_path; | 168 return chrome_exe_path; |
| 169 | 169 |
| 170 return FilePath(); | 170 return FilePath(); |
| 171 } | 171 } |
| 172 | 172 |
| OLD | NEW |