From 66fe9f074fa6a0b83959870d9d53b4f6284edba0 Mon Sep 17 00:00:00 2001 From: "amanda@chromium.org" Date: Thu, 18 Jun 2009 16:18:53 +0000 Subject: 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 --- chrome/browser/first_run_mac.mm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/browser/first_run_mac.mm') 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) { -- cgit v1.1