| Index: chrome/browser/ui/webui/options/browser_options_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc
|
| index 1e56c524a7cd2901d47bcfa9b60aefdfb5944142..819447c5275a5bf3a079a515564d9db48cbb220f 100644
|
| --- a/chrome/browser/ui/webui/options/browser_options_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
|
| @@ -107,6 +107,7 @@
|
| #include "ui/base/webui/web_ui_util.h"
|
|
|
| #if !defined(OS_CHROMEOS)
|
| +#include "chrome/browser/ui/startup/default_browser_prompt.h"
|
| #include "chrome/browser/ui/webui/options/advanced_options_utils.h"
|
| #endif
|
|
|
| @@ -1124,8 +1125,7 @@ void BrowserOptionsHandler::BecomeDefaultBrowser(const base::ListValue* args) {
|
|
|
| // If the user attempted to make Chrome the default browser, notify
|
| // them when this changes.
|
| - PrefService* prefs = Profile::FromWebUI(web_ui())->GetPrefs();
|
| - prefs->SetBoolean(prefs::kCheckDefaultBrowser, true);
|
| + chrome::ResetDefaultBrowserPrompt(Profile::FromWebUI(web_ui()));
|
| }
|
|
|
| void BrowserOptionsHandler::SetDefaultWebClientUIState(
|
| @@ -1136,8 +1136,7 @@ void BrowserOptionsHandler::SetDefaultWebClientUIState(
|
| status_string_id = IDS_OPTIONS_DEFAULTBROWSER_DEFAULT;
|
| // Notify the user in the future if Chrome ceases to be the user's chosen
|
| // default browser.
|
| - PrefService* prefs = Profile::FromWebUI(web_ui())->GetPrefs();
|
| - prefs->SetBoolean(prefs::kCheckDefaultBrowser, true);
|
| + chrome::ResetDefaultBrowserPrompt(Profile::FromWebUI(web_ui()));
|
| } else if (state == shell_integration::STATE_NOT_DEFAULT) {
|
| if (shell_integration::CanSetAsDefaultBrowser() ==
|
| shell_integration::SET_DEFAULT_NOT_ALLOWED) {
|
|
|