/external/chromium_org/chrome/browser/google/ |
H A D | google_util_chromeos.cc | 23 // 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 D | google_util.cc | 109 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 D | google_util.h | 43 // 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 D | fake_product_state.h | 19 void set_brand(const std::wstring& brand) { brand_ = brand; } argument
|
H A D | google_update_settings.h | 116 // 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 D | user_experiment.cc | 286 // 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 D | installation_state.h | 58 // 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 D | rlz_lib_clear.cc | 53 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 D | financial_ping_test.cc | 12 // 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 D | rlz.cc | 52 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 D | search_terms_data.cc | 81 string16 brand; local 82 if (GoogleUpdateSettings::GetBrand(&brand) && !brand.empty() && 83 !GoogleUpdateSettings::IsOrganic(brand)) {
|
/external/chromium_org/chrome/browser/rlz/ |
H A D | rlz_unittest.cc | 111 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 D | rlz.cc | 66 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 D | manifest_fetch_data.cc | 89 // 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 D | build_info.h | 47 const char* brand() const { function in class:base::android::BuildInfo
|
/external/chromium_org/chrome/browser/ |
H A D | chrome_browser_field_trials_desktop.cc | 46 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 D | upgrade_detector_impl.cc | 330 // 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 D | search_terms_data.cc | 125 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 D | signin_promo.cc | 65 // 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 D | rlz_value_store_chromeos.cc | 33 // 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 D | brandcode_config_fetcher.cc | 35 // |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 D | extension_rlz_module.cc | 151 std::string brand; local 152 EXTENSION_FUNCTION_VALIDATE(args_->GetString(3, &brand)); 170 signature.c_str(), brand.c_str(),
|
/external/chromium/build/ |
H A D | install-chroot.sh | 183 brand="Ubuntu" || brand="Debian" 189 description=${brand} ${distname} ${arch}
|
/external/chromium/chrome/browser/first_run/ |
H A D | first_run_win.cc | 302 std::wstring brand; local 303 GoogleUpdateSettings::GetBrand(&brand); 304 return GoogleUpdateSettings::IsOrganicFirstRun(brand);
|
/external/chromium_org/rlz/win/lib/ |
H A D | rlz_value_store_registry.cc | 52 std::string brand(SupplementaryBranding::GetBrand()); 53 if (!brand.empty()) 54 base::StringAppendF(str, "\\_%s", brand.c_str());
|