| Index: chrome/browser/chrome_browser_main.cc
|
| ===================================================================
|
| --- chrome/browser/chrome_browser_main.cc (revision 149795)
|
| +++ chrome/browser/chrome_browser_main.cc (working copy)
|
| @@ -794,6 +794,13 @@
|
| 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;
|
|
|