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

Unified Diff: chrome/browser/ui/startup/default_browser_prompt_win.cc

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: Fixed a crash planted in the previous patch. 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/default_browser_prompt_win.cc
diff --git a/chrome/browser/ui/startup/default_browser_prompt_win.cc b/chrome/browser/ui/startup/default_browser_prompt_win.cc
index 770952f9d711de9eb38c127ed9e142af4b06fb9a..0a90a0d6f20c6e5f3950b46cbc51f685763ef513 100644
--- a/chrome/browser/ui/startup/default_browser_prompt_win.cc
+++ b/chrome/browser/ui/startup/default_browser_prompt_win.cc
@@ -83,4 +83,13 @@ void ShowFirstRunDefaultBrowserPrompt(Profile* profile) {
}
}
+bool ExpectDefaultBrowserPromptDialog(Profile* profile, bool is_first_run) {
+ return is_first_run &&
+ profile->GetPrefs()->GetBoolean(prefs::kDefaultBrowserFlowDialog) &&
+ (ShellIntegration::IsDefaultBrowser() ==
grt (UTC plus 2) 2012/07/05 20:08:47 please swap the CanSetAsDefaultBrowser and IsDefau
motek. 2012/08/08 14:28:35 This part is gone altogether now. Changed above fo
+ ShellIntegration::NOT_DEFAULT_WEB_CLIENT) &&
+ (ShellIntegration::CanSetAsDefaultBrowser() ==
+ ShellIntegration::SET_DEFAULT_INTERACTIVE);
+}
+
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698