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

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: A comment fix. 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..37d281e8e3f9748da29c1bce6a6340248aa676c7 100644
--- a/chrome/browser/ui/startup/startup_browser_creator.h
+++ b/chrome/browser/ui/startup/startup_browser_creator.h
@@ -83,6 +83,13 @@ class StartupBrowserCreator {
const CommandLine& command_line,
Profile* profile);
+ void set_suppressed_set_as_default_dialog(bool new_value) {
+ suppressed_set_as_default_dialog_ = new_value;
+ }
+
+ bool get_suppressed_set_as_default_dialog() {
grt (UTC plus 2) 2012/07/25 10:54:55 constify the method
motek. 2012/07/25 12:10:40 Done.
+ return suppressed_set_as_default_dialog_;
+ }
grt (UTC plus 2) 2012/07/25 10:54:55 add a blank line between } and private:
motek. 2012/07/25 12:10:40 Done.
private:
friend class CloudPrintProxyPolicyTest;
friend class CloudPrintProxyPolicyStartupTest;
@@ -118,6 +125,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 needs to be passed down to code setting chrome as the
grt (UTC plus 2) 2012/07/25 10:54:55 this seems more clear to me: // This information i
motek. 2012/07/25 12:10:40 Done.
+ // default browser.
+ bool suppressed_set_as_default_dialog_;
+
// 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