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

12

/external/chromium_org/chrome/browser/google/
H A Dgoogle_brand.cc36 bool GetBrand(std::string* brand) { argument
38 brand->assign(g_brand_for_testing);
45 brand->assign(base::UTF16ToASCII(brand16));
49 bool GetReactivationBrand(std::string* brand) { argument
53 brand->assign(base::UTF16ToASCII(brand16));
59 bool GetBrand(std::string* brand) {
61 brand->assign(g_brand_for_testing);
66 brand->assign(keystone_glue::BrandCode());
68 brand->assign(google_brand::chromeos::GetBrand());
70 brand
82 IsOrganic(const std::string& brand) argument
111 IsOrganicFirstRun(const std::string& brand) argument
124 IsInternetCafeBrandCode(const std::string& brand) argument
136 BrandForTesting(const std::string& brand) argument
[all...]
H A Dgoogle_brand.h6 // distributions (such as RLZ), and specifically relating to the brand of the
21 // Returns in |brand| the brand code or distribution tag that has been
23 bool GetBrand(std::string* brand);
25 // Returns in |brand| the reactivation brand code or distribution tag
28 bool GetReactivationBrand(std::string* brand);
30 // True if a build is strictly organic, according to its brand code.
31 bool IsOrganic(const std::string& brand);
34 // a slightly different set of brand code
[all...]
H A Dgoogle_brand_chromeos.cc24 // Path to file that stores the RLZ brand code on ChromeOS.
28 // Reads the brand code from file |kRLZBrandFilePath|.
30 std::string brand; local
32 if (!base::ReadFileToString(brand_file_path, &brand))
34 base::TrimWhitespace(brand, base::TRIM_ALL, &brand);
35 return brand;
38 // Sets the brand code to |brand|.
39 void SetBrand(const base::Closure& callback, const std::string& brand) { argument
69 std::string brand; local
[all...]
/external/chromium_org/chrome/browser/extensions/updater/
H A Dchrome_extension_downloader_factory.cc30 std::string brand; local
31 google_brand::GetBrand(&brand);
32 if (!brand.empty() && !google_brand::IsOrganic(brand))
33 downloader->set_brand_code(brand);
/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.h131 // Returns in |brand| the RLZ brand code or distribution tag that has been
136 static bool GetBrand(base::string16* brand);
138 // Returns in |brand| the RLZ reactivation brand code or distribution tag
145 static bool GetReactivationBrand(base::string16* brand);
H A Duser_experiment.cc292 // brand.
344 base::string16 brand; local
345 if (!GoogleUpdateSettings::GetBrand(&brand))
346 brand = base::ASCIIToWide(""); // Could still be viable for catch-all rules
359 if (*it != brand && *it != L"*")
420 base::string16 brand; local
421 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...]
H A Drlz_lib.h159 // product_brand : The brand of the pinging product, if any.
230 // product_brand : The brand of the pinging product, if any.
313 // product brand is associated with it.
320 // For example, to record events for a supplementary brand, do the following:
324 // // This call to RecordProductEvent is scoped to the AAAA brand.
329 // // This call to RecordProductEvent is not scoped to any supplementary brand.
335 // scoped to a supplementary brand will be recorded again when scoped to a
336 // different supplementary brand (or not scoped at all). In the latter case,
337 // the time skip check is specific to each supplementary brand.
340 SupplementaryBranding(const char* brand);
[all...]
/external/chromium_org/chrome/browser/rlz/
H A Drlz_unittest.cc100 bool was_ping_sent_for_brand(const std::string& brand) const {
101 return pinged_brands_.count(brand) > 0;
140 virtual bool SendFinancialPing(const std::string& brand,
144 EXPECT_FALSE(brand.empty());
145 pinged_brands_.insert(brand);
168 void SetMainBrand(const char* brand);
169 void SetReactivationBrand(const char* brand);
171 void SetRegistryBrandValue(const wchar_t* name, const char* brand);
192 // Make sure a non-organic brand code is set in the registry or the RLZTracker
198 void RlzLibTest::SetMainBrand(const char* brand) { argument
209 SetReactivationBrand(const char* brand) argument
220 SetRegistryBrandValue(const wchar_t* name, const char* brand) argument
280 std::string brand; local
286 std::string brand; local
[all...]
H A Drlz.cc68 bool IsBrandOrganic(const std::string& brand) { argument
69 return brand.empty() || google_brand::IsOrganic(brand);
167 bool SendFinancialPing(const std::string& brand, argument
186 brand.c_str(), referral_ascii.c_str(),
346 // If chrome has been reactivated, record the events for this brand
402 bool RLZTracker::SendFinancialPing(const std::string& brand, argument
405 return ::SendFinancialPing(brand, lang, referral);
460 // If chrome has been reactivated, record the event for this brand as well.
H A Drlz.h49 // If the chrome brand is organic (no partners) then the pings don't occur.
185 virtual bool SendFinancialPing(const std::string& brand,
232 // Main and (optionally) reactivation brand codes, assigned on UI thread.
/external/chromium_org/chrome/browser/
H A Dchrome_browser_field_trials_desktop.cc35 std::string brand; local
36 google_brand::GetBrand(&brand);
38 // Create a 100% field trial based on the brand code.
39 if (auto_launch_trial::IsInExperimentGroup(brand)) {
42 } else if (auto_launch_trial::IsInControlGroup(brand)) {
H A Dupgrade_detector_impl.cc392 // Don't show the bubble if we have a brand code that is NOT organic, unless
396 std::string brand; local
397 if (google_brand::GetBrand(&brand) && !google_brand::IsOrganic(brand))
/external/chromium_org/base/android/
H A Dbuild_info.h51 const char* brand() const { function in class:base::android::BuildInfo
/external/chromium_org/chrome/browser/search_engines/
H A Dui_thread_search_terms_data.cc74 std::string brand; local
75 if (google_brand::GetBrand(&brand) && !brand.empty() &&
76 !google_brand::IsOrganic(brand)) {
/external/chromium_org/rlz/chromeos/lib/
H A Drlz_value_store_chromeos.cc31 // Brand name used when there is no supplementary brand name.
65 std::string brand = SupplementaryBranding::GetBrand(); local
66 if (brand.empty())
67 brand = kNoSupplementaryBrand;
68 return key + "." + GetAccessPointName(access_point) + "." + brand;
73 std::string brand = SupplementaryBranding::GetBrand(); local
74 if (brand.empty())
75 brand = kNoSupplementaryBrand;
76 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/signin/
H A Dsignin_promo.cc54 // Checks we want to show the sign in promo for the given brand.
56 std::string brand; local
57 google_brand::GetBrand(&brand);
59 if (brand.empty())
62 if (google_brand::IsInternetCafeBrandCode(brand))
/external/kernel-headers/original/uapi/linux/
H A Dscc.h155 char brand; /* hardware type */ member in struct:scc_hw_config
/external/chromium_org/rlz/win/lib/
H A Drlz_value_store_registry.cc54 std::string brand(SupplementaryBranding::GetBrand());
55 if (!brand.empty())
56 base::StringAppendF(str, "\\_%s", brand.c_str());
/external/chromium_org/base/
H A Dcpu.cc177 const std::string& brand() const { return brand_; } function in class:base::__anon2218::LazyCpuInfoValue
249 // Get the brand string of the cpu.
272 cpu_brand_.assign(g_lazy_cpuinfo.Get().brand());
/external/chromium_org/chrome/browser/first_run/
H A Dfirst_run.cc572 std::string brand; local
573 google_brand::GetBrand(&brand);
574 return google_brand::IsOrganicFirstRun(brand);

Completed in 377 milliseconds

12