Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Unified Diff: chrome/browser/browser_main.cc

Issue 198038: Add 3 more flavors of the try chrome toast... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/first_run.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 25038)
+++ chrome/browser/browser_main.cc (working copy)
@@ -459,8 +459,11 @@
#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)
« no previous file with comments | « no previous file | chrome/browser/first_run.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698