Fix a regression when switching the options pane to use Dom UI: when a user...

Fix a regression when switching the options pane to use Dom UI: when a user clicks the "Make Chrome my default browser" button, we should reset the browser.check_default_browser to true.

BUG=73208
TEST=Follow steps listed in bug, observe that the infobar again shows up.

Review URL: http://codereview.chromium.org/6542018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75401 0039d316-1c4b-4281-b951-d872f2087c98
parent d2310145
......@@ -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 @@ void BrowserOptionsHandler::BecomeDefaultBrowser(const ListValue* args) {
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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment