summaryrefslogtreecommitdiffstats
path: root/chrome/browser/google/google_util.h
diff options
context:
space:
mode:
authorrogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-07 14:17:58 +0000
committerrogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-07 14:17:58 +0000
commit7a336d6ec8064a899458123d34b9a6739e49a0d9 (patch)
tree327c4a92d7ca092e6938ecd0bdee8d42429769c3 /chrome/browser/google/google_util.h
parentd4e744e5fd8bd1aa831510cb23044d8017f14e17 (diff)
downloadchromium_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/google/google_util.h')
-rw-r--r--chrome/browser/google/google_util.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/chrome/browser/google/google_util.h b/chrome/browser/google/google_util.h
index bbc7a15..daa4048 100644
--- a/chrome/browser/google/google_util.h
+++ b/chrome/browser/google/google_util.h
@@ -27,6 +27,23 @@ std::string StringAppendGoogleLocaleParam(const std::string& url);
// check to see if the param already exists.
GURL AppendGoogleTLDParam(const GURL& url);
+// Returns in |brand| the brand code or distribution tag that has been
+// assigned to a partner. Returns false if the information is not available.
+bool GetBrand(std::string* brand);
+
+// Returns in |brand| the reactivation brand code or distribution tag
+// that has been assigned to a partner for reactivating a dormant chrome
+// install. Returns false if the information is not available.
+bool GetReactivationBrand(std::string* brand);
+
+// True if a build is strictly organic, according to its brand code.
+bool IsOrganic(const std::string& brand);
+
+// True if a build should run as organic during first run. This uses
+// a slightly different set of brand codes from the standard IsOrganic
+// method.
+bool IsOrganicFirstRun(const std::string& brand);
+
} // namespace google_util
#endif // CHROME_BROWSER_GOOGLE_GOOGLE_UTIL_H__