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) { |
Ben Goodger (Google)
2012/08/01 18:00:20
set_default_browser_dialog_suppressed
the double
motek.
2012/08/01 20:44:52
I liked this one for its comedic value. But you ar
|
+ 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_; |
+ |
// True if we have already read and reset the preference kWasRestarted. (A |
// member variable instead of a static variable inside WasRestarted because |
// of testing.) |