summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.cc
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-12 21:34:14 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-12 21:34:14 +0000
commit37a24e0d9e75a916c13900cf34d7c6b54acc2001 (patch)
tree3906a420c55d55e65b93a37a987bc0b016d1a308 /chrome/browser/browser_main.cc
parent7c75df395ff1ca8095862328f6d5410071539f56 (diff)
downloadchromium_src-37a24e0d9e75a916c13900cf34d7c6b54acc2001.zip
chromium_src-37a24e0d9e75a916c13900cf34d7c6b54acc2001.tar.gz
chromium_src-37a24e0d9e75a916c13900cf34d7c6b54acc2001.tar.bz2
Tweaks to the try chrome toast
- Wire it to the cmdline param --try-chrome-again - Set window bounds so it looks nice on Vista - Enable the link to help center BUG=b/1484308 TEST=see the bug Review URL: http://codereview.chromium.org/126029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18321 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r--chrome/browser/browser_main.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index f7145a4..9f03460 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -395,6 +395,17 @@ int BrowserMain(const MainFunctionParams& parameters) {
ResourceBundle::GetSharedInstance().LoadThemeResources();
}
+#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();
+ if (answer == Upgrade::TD_NOT_NOW)
+ return ResultCodes::NORMAL_EXIT;
+ if (answer == Upgrade::TD_UNINSTALL_CHROME)
+ return ResultCodes::UNINSTALL_CHROME_ALIVE;
+ }
+#endif // OS_WIN
+
BrowserInit browser_init;
if (is_first_run) {