summaryrefslogtreecommitdiffstats
path: root/chrome/browser/first_run.h
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-10 22:14:06 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-10 22:14:06 +0000
commit6029d8d01d809c7d74d1fd36969c1bcda63b2075 (patch)
tree0b0c4ebf975060154db02caeb24bb60eed1593ce /chrome/browser/first_run.h
parentb1829e7e4bd967da34601b1fae5172f7fc457e79 (diff)
downloadchromium_src-6029d8d01d809c7d74d1fd36969c1bcda63b2075.zip
chromium_src-6029d8d01d809c7d74d1fd36969c1bcda63b2075.tar.gz
chromium_src-6029d8d01d809c7d74d1fd36969c1bcda63b2075.tar.bz2
UI part of the try chrome toast
- experimental. 'en' only - modal dialog is farily custom BUG=none TEST=none Review URL: http://codereview.chromium.org/118510 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18093 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run.h')
-rw-r--r--chrome/browser/first_run.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/first_run.h b/chrome/browser/first_run.h
index 6633200..a1b3f16 100644
--- a/chrome/browser/first_run.h
+++ b/chrome/browser/first_run.h
@@ -96,6 +96,15 @@ class FirstRun {
// the new browser.
class Upgrade {
public:
+ // Possible results of ShowTryChromeDialog().
+ enum TryResult {
+ TD_TRY_CHROME, // Launch chrome right now.
+ TD_NOT_NOW, // Don't launch chrome. Exit now.
+ TD_UNINSTALL_CHROME, // Initiate chrome uninstall and exit.
+ TD_DIALOG_ERROR, // An error occurred creating the dialog.
+ TD_LAST_ENUM
+ };
+
// Check if current chrome.exe is already running as a browser process by
// trying to create a Global event with name same as full path of chrome.exe.
// This method caches the handle to this event so on subsequent calls also
@@ -111,6 +120,11 @@ class Upgrade {
// to chrome.exe and the old chrome is renamed to old_chrome.exe. If there
// is no new_chrome.exe or the swap fails the return is false;
static bool SwapNewChromeExeIfPresent();
+
+ // Shows a modal dialog asking the user to give chrome another try. See
+ // above for the possible outcomes of the function. This is an experimental,
+ // non-localized dialog.
+ static TryResult ShowTryChromeDialog();
};
// A subclass of BrowserProcessImpl that does not have a GoogleURLTracker