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

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

Issue 6542018: Fix a regression when switching the options pane to use Dom UI: when a user c... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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
« 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 75110)
+++ chrome/browser/dom_ui/options/browser_options_handler.cc (working copy)
@@ -19,6 +19,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"
@@ -186,6 +187,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
This is Rietveld 408576698