diff options
author | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-07 14:17:58 +0000 |
---|---|---|
committer | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-07 14:17:58 +0000 |
commit | 7a336d6ec8064a899458123d34b9a6739e49a0d9 (patch) | |
tree | 327c4a92d7ca092e6938ecd0bdee8d42429769c3 /chrome/browser/first_run/first_run.cc | |
parent | d4e744e5fd8bd1aa831510cb23044d8017f14e17 (diff) | |
download | chromium_src-7a336d6ec8064a899458123d34b9a6739e49a0d9.zip chromium_src-7a336d6ec8064a899458123d34b9a6739e49a0d9.tar.gz chromium_src-7a336d6ec8064a899458123d34b9a6739e49a0d9.tar.bz2 |
Move brand code related function to a common place for all platforms. These
are Google specific APIs.
BUG=None
TEST=Make sure RLZ still uses correct brand code.
Review URL: http://codereview.chromium.org/8136006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104479 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run/first_run.cc')
-rw-r--r-- | chrome/browser/first_run/first_run.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/browser/first_run/first_run.cc b/chrome/browser/first_run/first_run.cc index 3cc08bda..230aa69 100644 --- a/chrome/browser/first_run/first_run.cc +++ b/chrome/browser/first_run/first_run.cc @@ -13,6 +13,7 @@ #include "chrome/browser/browser_process.h" #include "chrome/browser/first_run/first_run_dialog.h" #include "chrome/browser/first_run/first_run_import_observer.h" +#include "chrome/browser/google/google_util.h" #include "chrome/browser/importer/external_process_importer_host.h" #include "chrome/browser/importer/importer_host.h" #include "chrome/browser/importer/importer_list.h" @@ -662,6 +663,21 @@ void FirstRun::AutoImport( FirstRun::CreateSentinel(); } +#if defined(OS_LINUX) +// static +bool FirstRun::IsOrganicFirstRun() { + // We treat all installs as organic. + return true; +} +#else +// static +bool FirstRun::IsOrganicFirstRun() { + std::string brand; + google_util::GetBrand(&brand); + return google_util::IsOrganicFirstRun(brand); +} +#endif // OS_LINUX + #if defined(OS_POSIX) namespace { |