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

Unified Diff: chrome/browser/browser_main.cc

Issue 6625037: Make the toast more reliable and less dangerous... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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/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 76859)
+++ chrome/browser/browser_main.cc (working copy)
@@ -1233,9 +1233,18 @@
parsed_command_line.GetSwitchValueASCII(switches::kTryChromeAgain);
if (!try_chrome.empty()) {
#if defined(OS_WIN)
+ // Setup.exe has determined that we need to run a retention experiment
+ // and has lauched chrome to show the experiment UI.
+ if (process_singleton.FoundOtherProcessWindow()) {
+ // It seems that we don't need to run the experiment since chrome
+ // in the same profile is already running.
+ VLOG(1) << "Retention experiment not required";
+ return Upgrade::TD_NOT_NOW;
+ }
int try_chrome_int;
base::StringToInt(try_chrome, &try_chrome_int);
- Upgrade::TryResult answer = Upgrade::ShowTryChromeDialog(try_chrome_int);
+ Upgrade::TryResult answer =
+ Upgrade::ShowTryChromeDialog(try_chrome_int, &process_singleton);
if (answer == Upgrade::TD_NOT_NOW)
return ResultCodes::NORMAL_EXIT_CANCEL;
if (answer == Upgrade::TD_UNINSTALL_CHROME)
« no previous file with comments | « no previous file | chrome/browser/first_run/first_run.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698