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

Side by Side Diff: chrome/installer/util/browser_distribution.cc

Issue 1473813003: Add a GetRegistryPath method to BrowserDistribution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
OLDNEW
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 // This file defines a class that contains various method related to branding. 5 // This file defines a class that contains various method related to branding.
6 // It provides only default implementations of these methods. Usually to add 6 // It provides only default implementations of these methods. Usually to add
7 // specific branding, we will need to extend this class with a custom 7 // specific branding, we will need to extend this class with a custom
8 // implementation. 8 // implementation.
9 9
10 #include "chrome/installer/util/browser_distribution.h" 10 #include "chrome/installer/util/browser_distribution.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 } 233 }
234 234
235 std::string BrowserDistribution::GetSafeBrowsingName() { 235 std::string BrowserDistribution::GetSafeBrowsingName() {
236 return "chromium"; 236 return "chromium";
237 } 237 }
238 238
239 base::string16 BrowserDistribution::GetDistributionData(HKEY root_key) { 239 base::string16 BrowserDistribution::GetDistributionData(HKEY root_key) {
240 return L""; 240 return L"";
241 } 241 }
242 242
243 base::string16 BrowserDistribution::GetRegistryPath() {
244 return base::string16(L"Software\\").append(GetInstallSubDir());
245 }
246
243 base::string16 BrowserDistribution::GetUninstallRegPath() { 247 base::string16 BrowserDistribution::GetUninstallRegPath() {
244 return L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Chromium"; 248 return L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Chromium";
245 } 249 }
246 250
247 BrowserDistribution::DefaultBrowserControlPolicy 251 BrowserDistribution::DefaultBrowserControlPolicy
248 BrowserDistribution::GetDefaultBrowserControlPolicy() { 252 BrowserDistribution::GetDefaultBrowserControlPolicy() {
249 return DEFAULT_BROWSER_FULL_CONTROL; 253 return DEFAULT_BROWSER_FULL_CONTROL;
250 } 254 }
251 255
252 bool BrowserDistribution::CanCreateDesktopShortcuts() { 256 bool BrowserDistribution::CanCreateDesktopShortcuts() {
(...skipping 13 matching lines...) Expand all
266 installer::InstallStatus install_status) { 270 installer::InstallStatus install_status) {
267 } 271 }
268 272
269 bool BrowserDistribution::ShouldSetExperimentLabels() { 273 bool BrowserDistribution::ShouldSetExperimentLabels() {
270 return false; 274 return false;
271 } 275 }
272 276
273 bool BrowserDistribution::HasUserExperiments() { 277 bool BrowserDistribution::HasUserExperiments() {
274 return false; 278 return false;
275 } 279 }
OLDNEW
« chrome/installer/util/browser_distribution.h ('K') | « chrome/installer/util/browser_distribution.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698