summaryrefslogtreecommitdiffstats
path: root/chrome/browser/first_run.h
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 16:17:12 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 16:17:12 +0000
commite9d7b6cf453475ad269785f3775700339c8a03fb (patch)
tree14fa3a46e2579183c3be5d46a808cf3d884b36b4 /chrome/browser/first_run.h
parent5b2e8faf4be9281ed3775a2d9e1462a56880a678 (diff)
downloadchromium_src-e9d7b6cf453475ad269785f3775700339c8a03fb.zip
chromium_src-e9d7b6cf453475ad269785f3775700339c8a03fb.tar.gz
chromium_src-e9d7b6cf453475ad269785f3775700339c8a03fb.tar.bz2
Some code had been removed from FirstRun::IsChromeFirstRun() so that it may return true then false when later invoked.This caused a bug where we would show the info-bar warning that Chromium is not the default browser after the first run.This patch resurrects that code and changes the first run UI, as it was relying on that behavior.BUG=http://crbug.com/15833TEST=Make IE or Firefox your default browser. Open Chromium so it shows the 1st run UI. Unselect the "make chromium my default browser" button, then press start. When Chromium shows up, there should be no info-bar warning you Chromium is not your default browser. Also test that the first run UI still works as expected.
Review URL: http://codereview.chromium.org/155168 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20151 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run.h')
-rw-r--r--chrome/browser/first_run.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/first_run.h b/chrome/browser/first_run.h
index cc8b4db..030c535 100644
--- a/chrome/browser/first_run.h
+++ b/chrome/browser/first_run.h
@@ -148,6 +148,8 @@ class FirstRunBrowserProcess : public BrowserProcessImpl {
// |profile| and perhaps some other tasks.
// |process_singleton| is used to lock the handling of CopyData messages
// while the First Run UI is visible.
-void OpenFirstRunDialog(Profile* profile, ProcessSingleton* process_singleton);
+// Returns true if the user clicked "Start", false if the user pressed "Cancel"
+// or closed the dialog.
+bool OpenFirstRunDialog(Profile* profile, ProcessSingleton* process_singleton);
#endif // CHROME_BROWSER_FIRST_RUN_H_