Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4540)

Unified Diff: chrome/browser/google/google_util.cc

Issue 8592005: Disable sync promo for internet cafe distributions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/google/google_util.h ('k') | chrome/browser/ui/webui/sync_promo_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google/google_util.cc
diff --git a/chrome/browser/google/google_util.cc b/chrome/browser/google/google_util.cc
index 9452c780824b16124f30933f534468da980d125b..667e7eb2dc6cf4bb0375724fb40a85261dfbddc1 100644
--- a/chrome/browser/google/google_util.cc
+++ b/chrome/browser/google/google_util.cc
@@ -176,4 +176,14 @@ bool IsOrganicFirstRun(const std::string& brand) {
StartsWithASCII(brand, "EU", true);
}
+bool IsInternetCafeBrandCode(const std::string& brand) {
+ const char* const kBrands[] = {
+ "CHIQ", "CHSG", "HLJY", "NTMO", "OOBA", "OOBB", "OOBC", "OOBD", "OOBE",
+ "OOBF", "OOBG", "OOBH", "OOBI", "OOBJ",
+ };
+ const char* const* end = &kBrands[arraysize(kBrands)];
+ const char* const* found = std::find(&kBrands[0], end, brand);
+ return found != end;
+}
+
} // namespace google_util
« no previous file with comments | « chrome/browser/google/google_util.h ('k') | chrome/browser/ui/webui/sync_promo_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698