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 (!base::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.h117 // Returns in |brand| the RLZ brand code or distribution tag that has been
122 static bool GetBrand(std::wstring* brand);
124 // Returns in |brand| the RLZ reactivation brand code or distribution tag
131 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.cc95 bool was_ping_sent_for_brand(const std::string& brand) const {
96 return pinged_brands_.count(brand) > 0;
135 virtual bool SendFinancialPing(const std::string& brand,
139 EXPECT_FALSE(brand.empty());
140 pinged_brands_.insert(brand);
161 void SetMainBrand(const char* brand);
162 void SetReactivationBrand(const char* brand);
164 void SetRegistryBrandValue(const wchar_t* name, const char* brand);
184 // Make sure a non-organic brand code is set in the registry or the RLZTracker
190 void RlzLibTest::SetMainBrand(const char* brand) { argument
201 SetReactivationBrand(const char* brand) argument
212 SetRegistryBrandValue(const wchar_t* name, const char* brand) argument
257 std::string brand; local
263 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(),
333 // If chrome has been reactivated, record the events for this brand
385 bool RLZTracker::SendFinancialPing(const std::string& brand, argument
388 return ::SendFinancialPing(brand, lang, referral);
435 // If chrome has been reactivated, record the event for this brand as well.
/external/chromium_org/chrome/browser/
H A Dchrome_browser_field_trials_desktop.cc36 std::string brand; local
37 google_util::GetBrand(&brand);
39 // Create a 100% field trial based on the brand code.
40 if (auto_launch_trial::IsInExperimentGroup(brand)) {
43 } else if (auto_launch_trial::IsInControlGroup(brand)) {
H A Dupgrade_detector_impl.cc320 // Also don't show the bubble if we have a brand code that is NOT organic.
321 std::string brand; local
322 if (google_util::GetBrand(&brand) && !google_util::IsOrganic(brand))
/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/rlz/chromeos/lib/
H A Drlz_value_store_chromeos.cc29 // Brand name used when there is no supplementary brand name.
59 std::string brand = SupplementaryBranding::GetBrand(); local
60 if (brand.empty())
61 brand = kNoSupplementaryBrand;
62 return key + "." + GetAccessPointName(access_point) + "." + brand;
67 std::string brand = SupplementaryBranding::GetBrand(); local
68 if (brand.empty())
69 brand = kNoSupplementaryBrand;
70 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_org/chrome/browser/search_engines/
H A Dsearch_terms_data.cc132 std::string brand; local
133 if (google_util::GetBrand(&brand) && !brand.empty() &&
134 !google_util::IsOrganic(brand)) {
/external/chromium_org/chrome/browser/signin/
H A Dsignin_promo.cc63 // Checks we want to show the sign in promo for the given brand.
65 std::string brand; local
66 google_util::GetBrand(&brand);
68 if (brand.empty())
71 if (google_util::IsInternetCafeBrandCode(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 2219 milliseconds

12