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

Unified Diff: chrome/install_static/install_modes.cc

Issue 2491463002: Revert of Windows install_static refactor. (Closed)
Patch Set: Created 4 years, 1 month 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
deleted file mode 100644
index 2061224e69954e1bddfa9ccb0571c62c1445e22c..0000000000000000000000000000000000000000
--- a/chrome/install_static/install_modes.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/install_static/install_modes.h"
-
-namespace install_static {
-
-namespace {
-
-std::wstring GetUnregisteredKeyPathForProduct(const wchar_t* product) {
- return std::wstring(L"Software\\").append(product);
-}
-
-std::wstring GetClientStateKeyPathForApp(const wchar_t* app_guid) {
- return std::wstring(L"Software\\Google\\Update\\ClientState\\")
- .append(app_guid);
-}
-
-std::wstring GetClientStateMediumKeyPathForApp(const wchar_t* app_guid) {
- return std::wstring(L"Software\\Google\\Update\\ClientStateMedium\\")
- .append(app_guid);
-}
-
-} // namespace
-
-std::wstring GetClientStateKeyPath(const wchar_t* app_guid) {
- if (!kUseGoogleUpdateIntegration)
- return GetUnregisteredKeyPathForProduct(kProductPathName);
- return GetClientStateKeyPathForApp(app_guid);
-}
-
-std::wstring GetBinariesClientStateKeyPath() {
- if (!kUseGoogleUpdateIntegration)
- return GetUnregisteredKeyPathForProduct(kBinariesPathName);
- return GetClientStateKeyPathForApp(kBinariesAppGuid);
-}
-
-std::wstring GetClientStateMediumKeyPath(const wchar_t* app_guid) {
- if (!kUseGoogleUpdateIntegration)
- return GetUnregisteredKeyPathForProduct(kProductPathName);
- return GetClientStateMediumKeyPathForApp(app_guid);
-}
-
-std::wstring GetBinariesClientStateMediumKeyPath() {
- if (!kUseGoogleUpdateIntegration)
- return GetUnregisteredKeyPathForProduct(kBinariesPathName);
- return GetClientStateMediumKeyPathForApp(kBinariesAppGuid);
-}
-
-} // namespace install_static
« 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