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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/google/google_util.h" 5 #include "chrome/browser/google/google_util.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // An empty brand string on Mac is used for channels other than stable, 169 // An empty brand string on Mac is used for channels other than stable,
170 // which are always organic. 170 // which are always organic.
171 return true; 171 return true;
172 } 172 }
173 #endif 173 #endif
174 174
175 return StartsWithASCII(brand, "GG", true) || 175 return StartsWithASCII(brand, "GG", true) ||
176 StartsWithASCII(brand, "EU", true); 176 StartsWithASCII(brand, "EU", true);
177 } 177 }
178 178
179 bool IsInternetCafeBrandCode(const std::string& brand) {
180 const char* const kBrands[] = {
181 "CHIQ", "CHSG", "HLJY", "NTMO", "OOBA", "OOBB", "OOBC", "OOBD", "OOBE",
182 "OOBF", "OOBG", "OOBH", "OOBI", "OOBJ",
183 };
184 const char* const* end = &kBrands[arraysize(kBrands)];
185 const char* const* found = std::find(&kBrands[0], end, brand);
186 return found != end;
187 }
188
179 } // namespace google_util 189 } // namespace google_util
OLDNEW
« 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