Commit 8b07d4f6 authored by cpu@chromium.org's avatar cpu@chromium.org

Inactive user toast. Set chrome as default.

BUG=129499
TEST=see bug
Review URL: https://chromiumcodereview.appspot.com/10826108

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149941 0039d316-1c4b-4281-b951-d872f2087c98
parent 53c808a3
......@@ -795,6 +795,13 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() {
return chrome::RESULT_CODE_NORMAL_EXIT_CANCEL;
if (answer == TryChromeDialogView::UNINSTALL_CHROME)
return chrome::RESULT_CODE_NORMAL_EXIT_EXP2;
// At this point the user is willing to try chrome again.
if (answer == TryChromeDialogView::TRY_CHROME_AS_DEFAULT) {
// Only set in the unattended case, the interactive case is Windows 8.
if (ShellIntegration::CanSetAsDefaultBrowser() ==
ShellIntegration::SET_DEFAULT_UNATTENDED)
ShellIntegration::SetAsDefaultBrowser();
}
#else
// We don't support retention experiments on Mac or Linux.
return content::RESULT_CODE_NORMAL_EXIT;
......
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