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

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

Issue 10696093: Hide the main window when Set-As-Default dialog is present. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review remarks. Created 8 years, 4 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 7d5b786958f107705129fca70e55fce0719a4c21..8e6e2f43f8ef787109010fe5d9d03334437a7188 100644
--- a/chrome/browser/ui/startup/startup_browser_creator.h
+++ b/chrome/browser/ui/startup/startup_browser_creator.h
@@ -91,6 +91,14 @@ class StartupBrowserCreator {
return is_default_browser_dialog_suppressed_;
}
+ void set_show_main_browser_window(bool show_main_browser_window) {
+ show_main_browser_window_ = show_main_browser_window;
+ }
+
+ bool show_main_browser_window() {
sky 2012/08/08 21:24:13 const
motek. 2012/08/09 14:26:56 Done.
+ return show_main_browser_window_;
+ }
+
private:
friend class CloudPrintProxyPolicyTest;
friend class CloudPrintProxyPolicyStartupTest;
@@ -131,6 +139,10 @@ class StartupBrowserCreator {
// first-run when the dialog has been suppressed.
bool is_default_browser_dialog_suppressed_;
+ // Whether the browser window should be shown immediately after it has been
+ // created. Default is true.
+ bool show_main_browser_window_;
+
// 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