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

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

Issue 2814083002: Make the GGRV brand code non-organic. (Closed)
Patch Set: Created 3 years, 8 months 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
Index: chrome/browser/google/google_brand.cc
diff --git a/chrome/browser/google/google_brand.cc b/chrome/browser/google/google_brand.cc
index 7e07284e4a73ffe0648ff61ff0e6dcf75af628d8..08cdff6067f774efe14ba15996a3fe28e854a7b6 100644
--- a/chrome/browser/google/google_brand.cc
+++ b/chrome/browser/google/google_brand.cc
@@ -105,6 +105,10 @@ bool IsOrganic(const std::string& brand) {
if (found != end)
return true;
+ // The Chrome enterprise brand code is the only GGR* brand to be non-organic.
+ if (brand == "GGRV")
+ return false;
+
return base::StartsWith(brand, "EUB", base::CompareCase::SENSITIVE) ||
base::StartsWith(brand, "EUC", base::CompareCase::SENSITIVE) ||
base::StartsWith(brand, "GGR", base::CompareCase::SENSITIVE);

Powered by Google App Engine
This is Rietveld 408576698