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.) |