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

Unified Diff: chrome/install_static/install_modes.cc

Issue 2459583002: Use InstallDetails in setup. (Closed)
Patch Set: another doc comment Created 3 years, 10 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
« no previous file with comments | « chrome/install_static/install_modes.h ('k') | chrome/install_static/install_modes_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/install_static/install_modes.cc
diff --git a/chrome/install_static/install_modes.cc b/chrome/install_static/install_modes.cc
index 2061224e69954e1bddfa9ccb0571c62c1445e22c..42d9966254758305e0dc999b186aa7abe1ff762a 100644
--- a/chrome/install_static/install_modes.cc
+++ b/chrome/install_static/install_modes.cc
@@ -12,6 +12,10 @@ std::wstring GetUnregisteredKeyPathForProduct(const wchar_t* product) {
return std::wstring(L"Software\\").append(product);
}
+std::wstring GetClientsKeyPathForApp(const wchar_t* app_guid) {
+ return std::wstring(L"Software\\Google\\Update\\Clients\\").append(app_guid);
+}
+
std::wstring GetClientStateKeyPathForApp(const wchar_t* app_guid) {
return std::wstring(L"Software\\Google\\Update\\ClientState\\")
.append(app_guid);
@@ -24,12 +28,24 @@ std::wstring GetClientStateMediumKeyPathForApp(const wchar_t* app_guid) {
} // namespace
+std::wstring GetClientsKeyPath(const wchar_t* app_guid) {
+ if (!kUseGoogleUpdateIntegration)
+ return GetUnregisteredKeyPathForProduct(kProductPathName);
+ return GetClientsKeyPathForApp(app_guid);
+}
+
std::wstring GetClientStateKeyPath(const wchar_t* app_guid) {
if (!kUseGoogleUpdateIntegration)
return GetUnregisteredKeyPathForProduct(kProductPathName);
return GetClientStateKeyPathForApp(app_guid);
}
+std::wstring GetBinariesClientsKeyPath() {
+ if (!kUseGoogleUpdateIntegration)
+ return GetUnregisteredKeyPathForProduct(kBinariesPathName);
+ return GetClientsKeyPathForApp(kBinariesAppGuid);
+}
+
std::wstring GetBinariesClientStateKeyPath() {
if (!kUseGoogleUpdateIntegration)
return GetUnregisteredKeyPathForProduct(kBinariesPathName);
« no previous file with comments | « chrome/install_static/install_modes.h ('k') | chrome/install_static/install_modes_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698