| Index: cloud_print/service/win/cloud_print_service.cc
|
| diff --git a/cloud_print/service/win/cloud_print_service.cc b/cloud_print/service/win/cloud_print_service.cc
|
| index f87c288850ad72a29c8cfb78df1245d475622ab7..7c885918269ac629c6b09ef18d8206d7378d0bee 100644
|
| --- a/cloud_print/service/win/cloud_print_service.cc
|
| +++ b/cloud_print/service/win/cloud_print_service.cc
|
| @@ -15,6 +15,7 @@
|
| #include "base/path_service.h"
|
| #include "base/string_util.h"
|
| #include "base/win/scoped_handle.h"
|
| +#include "chrome/installer/launcher_support/chrome_launcher_support.h"
|
| #include "cloud_print/service/service_state.h"
|
| #include "cloud_print/service/service_switches.h"
|
| #include "cloud_print/service/win/chrome_launcher.h"
|
| @@ -182,13 +183,15 @@ class CloudPrintServiceModule
|
| }
|
|
|
| HRESULT InstallService() {
|
| + using namespace chrome_launcher_support;
|
| +
|
| // TODO(vitalybuka): consider "lite" version if we don't want unregister
|
| // printers here.
|
| HRESULT hr = UninstallService();
|
| if (FAILED(hr))
|
| return hr;
|
|
|
| - if (ChromeLauncher::GetChromePath(HKEY_LOCAL_MACHINE).empty()) {
|
| + if (GetChromePathForInstallationLevel(SYSTEM_LEVEL_INSTALLATION).empty()) {
|
| LOG(ERROR) << "Found no Chrome installed for all users.";
|
| return HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND);
|
| }
|
|
|