Searched refs:brand (Results 1 - 25 of 42) sorted by relevance

12

/external/chromium_org/chrome/browser/google/
H A Dgoogle_util_chromeos.cc23 // Path to file that stores the RLZ brand code on ChromeOS.
27 // Reads the brand code from file |kRLZBrandFilePath|.
29 std::string brand; local
31 if (!file_util::ReadFileToString(brand_file_path, &brand))
33 TrimWhitespace(brand, TRIM_ALL, &brand);
34 return brand;
37 // Sets the brand code to |brand|.
38 void SetBrand(const base::Closure& callback, const std::string& brand) { argument
[all...]
H A Dgoogle_util.cc109 bool GetBrand(std::string* brand) { argument
111 brand->assign(brand_for_testing);
118 brand->assign(WideToASCII(brand16));
122 bool GetReactivationBrand(std::string* brand) { argument
126 brand->assign(WideToASCII(brand16));
132 bool GetBrand(std::string* brand) { argument
134 brand->assign(brand_for_testing);
139 brand->assign(keystone_glue::BrandCode());
141 brand->assign(google_util::chromeos::GetBrand());
143 brand
148 GetReactivationBrand(std::string* brand) argument
221 IsOrganic(const std::string& brand) argument
254 IsOrganicFirstRun(const std::string& brand) argument
272 IsInternetCafeBrandCode(const std::string& brand) argument
285 BrandForTesting(const std::string& brand) argument
[all...]
H A Dgoogle_util.h43 // Returns in |brand| the brand code or distribution tag that has been
45 bool GetBrand(std::string* brand);
47 // Returns in |brand| the reactivation brand code or distribution tag
50 bool GetReactivationBrand(std::string* brand);
106 // True if a build is strictly organic, according to its brand code.
107 bool IsOrganic(const std::string& brand);
110 // a slightly different set of brand codes from the standard IsOrganic
112 bool IsOrganicFirstRun(const std::string& brand);
[all...]
/external/chromium_org/chrome/installer/util/
H A Dfake_product_state.h19 void set_brand(const std::wstring& brand) { brand_ = brand; } argument
H A Dgoogle_update_settings.h116 // Returns in |brand| the RLZ brand code or distribution tag that has been
121 static bool GetBrand(std::wstring* brand);
123 // Returns in |brand| the RLZ reactivation brand code or distribution tag
130 static bool GetReactivationBrand(std::wstring* brand);
H A Duser_experiment.cc286 // brand.
338 string16 brand; local
339 if (!GoogleUpdateSettings::GetBrand(&brand))
340 brand = ASCIIToWide(""); // Could still be viable for catch-all rules.
353 if (*it != brand && *it != L"*")
414 string16 brand; local
415 if (GoogleUpdateSettings::GetBrand(&brand) && (brand == L"CHXX")) {
H A Dinstallation_state.h58 // Returns the brand code the product is currently installed with.
59 const std::wstring& brand() const { return brand_; } function in class:installer::ProductState
/external/chromium_org/rlz/lib/
H A Drlz_lib_clear.cc53 SupplementaryBranding::SupplementaryBranding(const char* brand) argument
59 ASSERT_STRING("ProductBranding: existing brand is not empty");
63 if (brand == NULL || brand[0] == 0) {
64 ASSERT_STRING("ProductBranding: new brand is empty");
68 g_supplemental_branding.Get() = brand;
H A Dfinancial_ping_test.cc12 // The "GGLA" brand is used to test the normal code flow of the code, and the
13 // "TEST" brand is used to test the supplementary brand code code flow. In one
14 // case below, the brand "GOOG" is used because the code wants to use a brand
65 const char* brand = brand_string.empty() ? "GGLA" : brand_string.c_str(); local
92 points, "swg", brand, NULL, "en", false, &request));
95 "/tools/pso/ping?as=swg&brand=%s&hl=en&"
97 , brand);
105 points, "swg", brand, "IdOk
[all...]
/external/chromium/chrome/browser/rlz/
H A Drlz.cc52 bool SendFinancialPing(const std::wstring& brand, const std::wstring& lang, argument
57 std::string brand_ascii(WideToASCII(brand));
141 std::wstring brand; local
142 GoogleUpdateSettings::GetBrand(&brand);
145 if (SendFinancialPing(brand, lang, referral, is_organic(brand))) {
153 static bool is_organic(const std::wstring& brand) { argument
154 return (brand.size() < 2) ? false : (brand.substr(0, 2) == L"GG");
176 std::wstring brand; local
[all...]
/external/chromium/chrome/browser/search_engines/
H A Dsearch_terms_data.cc81 string16 brand; local
82 if (GoogleUpdateSettings::GetBrand(&brand) && !brand.empty() &&
83 !GoogleUpdateSettings::IsOrganic(brand)) {
/external/chromium_org/chrome/browser/rlz/
H A Drlz_unittest.cc111 bool was_ping_sent_for_brand(const std::string& brand) const {
112 return pinged_brands_.count(brand) > 0;
151 virtual bool SendFinancialPing(const std::string& brand,
155 EXPECT_FALSE(brand.empty());
156 pinged_brands_.insert(brand);
179 void SetMainBrand(const char* brand);
180 void SetReactivationBrand(const char* brand);
182 void SetRegistryBrandValue(const wchar_t* name, const char* brand);
241 // Make sure a non-organic brand code is set in the registry or the RLZTracker
254 void RlzLibTest::SetMainBrand(const char* brand) { argument
265 SetReactivationBrand(const char* brand) argument
276 SetRegistryBrandValue(const wchar_t* name, const char* brand) argument
321 std::string brand; local
327 std::string brand; local
[all...]
H A Drlz.cc66 bool IsBrandOrganic(const std::string& brand) { argument
67 return brand.empty() || google_util::IsOrganic(brand);
134 bool SendFinancialPing(const std::string& brand, argument
150 brand.c_str(), referral_ascii.c_str(),
323 // If chrome has been reactivated, record the events for this brand
375 bool RLZTracker::SendFinancialPing(const std::string& brand, argument
378 return ::SendFinancialPing(brand, lang, referral);
425 // If chrome has been reactivated, record the event for this brand as well.
/external/chromium_org/chrome/browser/extensions/updater/
H A Dmanifest_fetch_data.cc89 // Append brand code, rollcall and active ping parameters.
92 std::string brand; local
93 google_util::GetBrand(&brand);
94 if (!brand.empty() && !google_util::IsOrganic(brand))
95 parts.push_back("brand=" + brand);
/external/chromium_org/base/android/
H A Dbuild_info.h47 const char* brand() const { function in class:base::android::BuildInfo
/external/chromium_org/chrome/browser/
H A Dchrome_browser_field_trials_desktop.cc46 std::string brand; local
47 google_util::GetBrand(&brand);
49 // Create a 100% field trial based on the brand code.
50 if (auto_launch_trial::IsInExperimentGroup(brand)) {
53 } else if (auto_launch_trial::IsInControlGroup(brand)) {
H A Dupgrade_detector_impl.cc330 // Also don't show the bubble if we have a brand code that is NOT organic.
331 std::string brand; local
332 if (google_util::GetBrand(&brand) && !google_util::IsOrganic(brand))
/external/chromium_org/chrome/browser/search_engines/
H A Dsearch_terms_data.cc125 std::string brand; local
126 if (google_util::GetBrand(&brand) && !brand.empty() &&
127 !google_util::IsOrganic(brand)) {
/external/chromium_org/chrome/browser/signin/
H A Dsignin_promo.cc65 // Checks we want to show the sign in promo for the given brand.
67 std::string brand; local
68 google_util::GetBrand(&brand);
70 if (brand.empty())
73 if (google_util::IsInternetCafeBrandCode(brand))
/external/chromium_org/rlz/chromeos/lib/
H A Drlz_value_store_chromeos.cc33 // Brand name used when there is no supplementary brand name.
63 std::string brand = SupplementaryBranding::GetBrand(); local
64 if (brand.empty())
65 brand = kNoSupplementaryBrand;
66 return key + "." + GetAccessPointName(access_point) + "." + brand;
71 std::string brand = SupplementaryBranding::GetBrand(); local
72 if (brand.empty())
73 brand = kNoSupplementaryBrand;
74 return key + "." + GetProductName(product) + "." + brand;
/external/chromium_org/chrome/browser/profile_resetter/
H A Dbrandcode_config_fetcher.cc35 // |brand| is a brand code, it mustn't be empty.
36 std::string GetUploadData(const std::string& brand) { argument
37 DCHECK(!brand.empty());
42 data.replace(placeholder_pos, placeholder.size(), brand);
/external/chromium/chrome/browser/extensions/
H A Dextension_rlz_module.cc151 std::string brand; local
152 EXTENSION_FUNCTION_VALIDATE(args_->GetString(3, &brand));
170 signature.c_str(), brand.c_str(),
/external/chromium/build/
H A Dinstall-chroot.sh183 brand="Ubuntu" || brand="Debian"
189 description=${brand} ${distname} ${arch}
/external/chromium/chrome/browser/first_run/
H A Dfirst_run_win.cc302 std::wstring brand; local
303 GoogleUpdateSettings::GetBrand(&brand);
304 return GoogleUpdateSettings::IsOrganicFirstRun(brand);
/external/chromium_org/rlz/win/lib/
H A Drlz_value_store_registry.cc52 std::string brand(SupplementaryBranding::GetBrand());
53 if (!brand.empty())
54 base::StringAppendF(str, "\\_%s", brand.c_str());

Completed in 728 milliseconds

12