Chromium Code Reviews

Unified Diff: chrome/browser/dom_ui/options/browser_options_handler.cc

Issue 6469057: Merge 75401 - Fix a regression when switching the options pane to use Dom UI:... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/648/src/
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/options/browser_options_handler.cc
===================================================================
--- chrome/browser/dom_ui/options/browser_options_handler.cc (revision 75406)
+++ chrome/browser/dom_ui/options/browser_options_handler.cc (working copy)
@@ -18,6 +18,7 @@
#include "chrome/browser/instant/instant_confirm_dialog.h"
#include "chrome/browser/metrics/user_metrics.h"
#include "chrome/browser/net/url_fixer_upper.h"
+#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/prefs/session_startup_pref.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engines/template_url.h"
@@ -195,6 +196,11 @@
default_browser_worker_->StartSetAsDefaultBrowser();
// Callback takes care of updating UI.
#endif
+
+ // If the user attempted to make Chrome the default browser, then he/she
+ // arguably wants to be notified when that changes.
+ PrefService* prefs = web_ui_->GetProfile()->GetPrefs();
+ prefs->SetBoolean(prefs::kCheckDefaultBrowser, true);
}
int BrowserOptionsHandler::StatusStringIdForState(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine