| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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" |
| 11 | 11 |
| 12 #include "base/atomicops.h" | 12 #include "base/atomicops.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
| 15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
| 16 #include "base/lock.h" | 16 #include "base/lock.h" |
| 17 #include "base/logging.h" | 17 #include "base/logging.h" |
| 18 #include "base/win/registry.h" | 18 #include "base/win/registry.h" |
| 19 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
| 20 #include "chrome/common/env_vars.h" | 20 #include "chrome/common/env_vars.h" |
| 21 #include "chrome/installer/util/chrome_frame_distribution.h" | 21 #include "chrome/installer/util/chrome_frame_distribution.h" |
| 22 #include "chrome/installer/util/google_chrome_distribution.h" | 22 #include "chrome/installer/util/google_chrome_distribution.h" |
| 23 #include "chrome/installer/util/google_chrome_sxs_distribution.h" | 23 #include "chrome/installer/util/google_chrome_sxs_distribution.h" |
| 24 #include "chrome/installer/util/install_util.h" | 24 #include "chrome/installer/util/install_util.h" |
| 25 #include "chrome/installer/util/l10n_string_util.h" | 25 #include "chrome/installer/util/l10n_string_util.h" |
| 26 | 26 |
| 27 #include "installer_util_strings.h" | 27 #include "installer_util_strings.h" // NOLINT |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 // The BrowserDistribution objects are never freed. | 30 // The BrowserDistribution objects are never freed. |
| 31 BrowserDistribution* g_browser_distribution = NULL; | 31 BrowserDistribution* g_browser_distribution = NULL; |
| 32 BrowserDistribution* g_chrome_frame_distribution = NULL; | 32 BrowserDistribution* g_chrome_frame_distribution = NULL; |
| 33 BrowserDistribution* g_ceee_distribution = NULL; | 33 BrowserDistribution* g_ceee_distribution = NULL; |
| 34 | 34 |
| 35 // Returns true if currently running in npchrome_frame.dll | 35 // Returns true if currently running in npchrome_frame.dll |
| 36 bool IsChromeFrameModule() { | 36 bool IsChromeFrameModule() { |
| 37 FilePath module_path; | 37 FilePath module_path; |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 220 |
| 221 void BrowserDistribution::LaunchUserExperiment( | 221 void BrowserDistribution::LaunchUserExperiment( |
| 222 installer_util::InstallStatus status, const installer::Version& version, | 222 installer_util::InstallStatus status, const installer::Version& version, |
| 223 const installer::Product& installation, bool system_level) { | 223 const installer::Product& installation, bool system_level) { |
| 224 } | 224 } |
| 225 | 225 |
| 226 | 226 |
| 227 void BrowserDistribution::InactiveUserToastExperiment(int flavor, | 227 void BrowserDistribution::InactiveUserToastExperiment(int flavor, |
| 228 const installer::Product& installation) { | 228 const installer::Product& installation) { |
| 229 } | 229 } |
| 230 |
| 231 FilePath::StringType BrowserDistribution::GetKeyFile() { |
| 232 return installer_util::kChromeDll; |
| 233 } |
| OLD | NEW |