summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.cc
diff options
context:
space:
mode:
authorcpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-09 19:35:31 +0000
committercpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-09 19:35:31 +0000
commitc4b3858cc5dbae4bb28bf8c8a9bf9b7d0ca146d0 (patch)
tree5857d77fcf503a60350cf7798964c2417e659208 /chrome/browser/browser_main.cc
parentac164c49d7975299229ff38615ae701e8b7766da (diff)
downloadchromium_src-c4b3858cc5dbae4bb28bf8c8a9bf9b7d0ca146d0.zip
chromium_src-c4b3858cc5dbae4bb28bf8c8a9bf9b7d0ca146d0.tar.gz
chromium_src-c4b3858cc5dbae4bb28bf8c8a9bf9b7d0ca146d0.tar.bz2
Add 3 more flavors of the try chrome toast
- Different strings, pretty much the same deal. - One case removes the radio buttons. BUG=none TEST=none Review URL: http://codereview.chromium.org/198038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25769 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r--chrome/browser/browser_main.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index f9dd85d..d470dbf 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -459,8 +459,11 @@ int BrowserMain(const MainFunctionParams& parameters) {
#if defined(OS_WIN)
// This is experimental code. See first_run_win.cc for more info.
- if (parsed_command_line.HasSwitch(switches::kTryChromeAgain)) {
- Upgrade::TryResult answer = Upgrade::ShowTryChromeDialog();
+ std::wstring try_chrome =
+ parsed_command_line.GetSwitchValue(switches::kTryChromeAgain);
+ if (!try_chrome.empty()) {
+ Upgrade::TryResult answer =
+ Upgrade::ShowTryChromeDialog(StringToInt(try_chrome));
if (answer == Upgrade::TD_NOT_NOW)
return ResultCodes::NORMAL_EXIT_EXP1;
if (answer == Upgrade::TD_UNINSTALL_CHROME)