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

Unified Diff: chrome/browser/first_run/first_run_win.cc

Issue 10539169: Prototype version of the first-run dialog for Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: An oops. Created 8 years, 6 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/first_run/first_run_win.cc
diff --git a/chrome/browser/first_run/first_run_win.cc b/chrome/browser/first_run/first_run_win.cc
index 31461fada071e8994744ad71e60b21974d4d079f..c7ed768743a6fe2eeb51863127166687c143a42b 100644
--- a/chrome/browser/first_run/first_run_win.cc
+++ b/chrome/browser/first_run/first_run_win.cc
@@ -28,6 +28,8 @@
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/process_singleton.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/shell_integration.h"
+#include "chrome/browser/ui/startup/default_browser_prompt.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_result_codes.h"
@@ -550,6 +552,10 @@ void AutoImport(
process_singleton->Unlock();
CreateSentinel();
#endif // !defined(USE_AURA)
+ if (ShellIntegration::IsDefaultBrowser() !=
+ ShellIntegration::IS_DEFAULT_WEB_CLIENT) {
+ browser::ShowFirstRunDefaultBrowserPrompt(profile);
+ }
}
int ImportNow(Profile* profile, const CommandLine& cmdline) {

Powered by Google App Engine
This is Rietveld 408576698