summaryrefslogtreecommitdiffstats
path: root/chrome/browser/first_run_mac.mm
diff options
context:
space:
mode:
authoramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-18 16:18:53 +0000
committeramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-18 16:18:53 +0000
commit66fe9f074fa6a0b83959870d9d53b4f6284edba0 (patch)
treebe9302b89720139843cea1204abe336a827cc211 /chrome/browser/first_run_mac.mm
parent33dcad60b08317a8c0c9ef4747052b732469ed2c (diff)
downloadchromium_src-66fe9f074fa6a0b83959870d9d53b4f6284edba0.zip
chromium_src-66fe9f074fa6a0b83959870d9d53b4f6284edba0.tar.gz
chromium_src-66fe9f074fa6a0b83959870d9d53b4f6284edba0.tar.bz2
Only check for first run dialog on official builds (since the dialog is a
no-op on Chromium builds) BUG=none TEST=none Review URL: http://codereview.chromium.org/131035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18709 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run_mac.mm')
-rw-r--r--chrome/browser/first_run_mac.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/first_run_mac.mm b/chrome/browser/first_run_mac.mm
index 70d1afd..933729ff5 100644
--- a/chrome/browser/first_run_mac.mm
+++ b/chrome/browser/first_run_mac.mm
@@ -13,6 +13,7 @@
// static
bool FirstRun::IsChromeFirstRun() {
+#if defined(GOOGLE_CHROME_BUILD)
// Use presence of kRegUsageStatsField key as an indicator of whether or not
// this is the first run.
// See chrome/browser/google_update_settings_mac.mm for details on why we use
@@ -24,6 +25,9 @@ bool FirstRun::IsChromeFirstRun() {
bool not_in_dict = [defaults_dict objectForKey:collect_stats_key] == nil;
return not_in_dict;
+#else
+ return false; // no first run UI for Chromium builds
+#endif // defined(GOOGLE_CHROME_BUILD)
}
void OpenFirstRunDialog(Profile* profile, ProcessSingleton* process_singleton) {