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

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

Issue 10546149: Factor out logic to find chrome.exe from Omaha client state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
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..6218f15a2fa9170addaac2e8dfcab2a102c5443e 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/tools/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"
@@ -188,7 +189,8 @@ class CloudPrintServiceModule
if (FAILED(hr))
return hr;
Vitaly Buka (NO REVIEWS) 2012/06/13 18:01:36 you can put "using namespace chrome_launcher_supp
erikwright (departed) 2012/06/13 19:43:43 Done.
- if (ChromeLauncher::GetChromePath(HKEY_LOCAL_MACHINE).empty()) {
+ if (chrome_launcher_support::GetChromePathForInstallationLevel(
+ chrome_launcher_support::SYSTEM_LEVEL_INSTALLATION).empty()) {
LOG(ERROR) << "Found no Chrome installed for all users.";
return HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND);
}
« cloud_print/service/service.gyp ('K') | « cloud_print/service/win/chrome_launcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698