Chromium Code Reviews| Index: chrome/browser/chrome_browser_main.cc |
| =================================================================== |
| --- chrome/browser/chrome_browser_main.cc (revision 149057) |
| +++ chrome/browser/chrome_browser_main.cc (working copy) |
| @@ -1363,6 +1363,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 unatendeded case, the interactive case is Windows 8. |
|
robertshield
2012/08/03 20:40:05
nit: unatendedededed -> unattended
|
| + 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; |