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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator.h

Issue 10702097: Adds browser preferences to configure first-run flow on Windows 8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reverted the most recent name change. Created 8 years, 5 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
Index: chrome/browser/ui/startup/startup_browser_creator.h
diff --git a/chrome/browser/ui/startup/startup_browser_creator.h b/chrome/browser/ui/startup/startup_browser_creator.h
index 96bdbedb700878d2c68cf4cbb0f24356907b6ac4..4a04732ae5e0d21da0bdf5d411b75ed627aa3ec3 100644
--- a/chrome/browser/ui/startup/startup_browser_creator.h
+++ b/chrome/browser/ui/startup/startup_browser_creator.h
@@ -83,6 +83,14 @@ class StartupBrowserCreator {
const CommandLine& command_line,
Profile* profile);
+ void set_is_set_as_default_dialog_suppressed(bool new_value) {
+ is_set_as_default_dialog_suppressed_ = new_value;
+ }
+
+ bool is_set_as_default_dialog_suppressed() const {
+ return is_set_as_default_dialog_suppressed_;
+ }
+
private:
friend class CloudPrintProxyPolicyTest;
friend class CloudPrintProxyPolicyStartupTest;
@@ -118,6 +126,11 @@ class StartupBrowserCreator {
// Additional tabs to open during first run.
std::vector<GURL> first_run_tabs_;
+ // True if the set-as-default dialog has been explicitly supressed.
+ // This information is used to allow the default browser prompt to show on
+ // first-run when the dialog has been suppressed.
+ bool is_set_as_default_dialog_suppressed_;
Peter Kasting 2012/07/27 18:48:06 Nit: Might be better as "default_browser_dialog_su
motek. 2012/07/28 17:46:44 It might. But then the one suggested by sky (is_se
Peter Kasting 2012/07/28 17:50:41 We generally try to avoid bools starting with "is"
+
// True if we have already read and reset the preference kWasRestarted. (A
// member variable instead of a static variable inside WasRestarted because
// of testing.)

Powered by Google App Engine
This is Rietveld 408576698