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

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

Issue 57173002: Adds the concept of a 'safe mode' hotkey start (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/installer/setup/install.cc ('k') | chrome/installer/util/browser_distribution.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 declares a class that contains various method related to branding. 5 // This file declares a class that contains various method related to branding.
6 6
7 #ifndef CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ 7 #ifndef CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_
8 #define CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ 8 #define CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 virtual void UpdateInstallStatus(bool system_install, 154 virtual void UpdateInstallStatus(bool system_install,
155 installer::ArchiveType archive_type, 155 installer::ArchiveType archive_type,
156 installer::InstallStatus install_status); 156 installer::InstallStatus install_status);
157 157
158 // Returns true if this distribution should set the Omaha experiment_labels 158 // Returns true if this distribution should set the Omaha experiment_labels
159 // registry value. 159 // registry value.
160 virtual bool ShouldSetExperimentLabels(); 160 virtual bool ShouldSetExperimentLabels();
161 161
162 virtual bool HasUserExperiments(); 162 virtual bool HasUserExperiments();
163 163
164 // Returning zero means that there is no hotkey.
165 virtual uint32 GetSafeModeHotkey();
166
164 protected: 167 protected:
165 explicit BrowserDistribution(Type type); 168 explicit BrowserDistribution(Type type);
166 169
167 template<class DistributionClass> 170 template<class DistributionClass>
168 static BrowserDistribution* GetOrCreateBrowserDistribution( 171 static BrowserDistribution* GetOrCreateBrowserDistribution(
169 BrowserDistribution** dist); 172 BrowserDistribution** dist);
170 173
171 const Type type_; 174 const Type type_;
172 175
173 private: 176 private:
174 BrowserDistribution(); 177 BrowserDistribution();
175 178
176 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); 179 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution);
177 }; 180 };
178 181
179 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ 182 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_
OLDNEW
« no previous file with comments | « chrome/installer/setup/install.cc ('k') | chrome/installer/util/browser_distribution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698