Lines Matching refs:brand
24 // Path to file that stores the RLZ brand code on ChromeOS.
28 // Reads the brand code from file |kRLZBrandFilePath|.
30 std::string brand;
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) {
40 g_browser_process->local_state()->SetString(prefs::kRLZBrand, brand);
44 // True if brand code has been cleared for the current session.
69 std::string brand;
71 ::chromeos::system::kRlzBrandCodeKey, &brand);
72 if (found && !brand.empty()) {
73 SetBrand(callback, brand);