summaryrefslogtreecommitdiffstats
path: root/chrome/browser/first_run_mac.mm
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_mac.mm
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_mac.mm')
-rw-r--r--chrome/browser/first_run_mac.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/first_run_mac.mm b/chrome/browser/first_run_mac.mm
index 933729ff5..7292e9d 100644
--- a/chrome/browser/first_run_mac.mm
+++ b/chrome/browser/first_run_mac.mm
@@ -30,7 +30,7 @@ bool FirstRun::IsChromeFirstRun() {
#endif // defined(GOOGLE_CHROME_BUILD)
}
-void OpenFirstRunDialog(Profile* profile, ProcessSingleton* process_singleton) {
+bool OpenFirstRunDialog(Profile* profile, ProcessSingleton* process_singleton) {
// OpenFirstRunDialog is a no-op on non-branded builds.
#if defined(GOOGLE_CHROME_BUILD)
// Breakpad should not be enabled on first run until the user has explicitly
@@ -56,4 +56,5 @@ void OpenFirstRunDialog(Profile* profile, ProcessSingleton* process_singleton) {
InitCrashProcessInfo();
}
#endif // defined(GOOGLE_CHROME_BUILD)
+ return true;
}