| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_GOOGLE_GOOGLE_UTIL_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_GOOGLE_BRAND_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_GOOGLE_GOOGLE_UTIL_CHROMEOS_H_ | 6 #define CHROME_BROWSER_GOOGLE_GOOGLE_BRAND_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 11 | 11 |
| 12 namespace google_util { | 12 namespace google_brand { |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 | 14 |
| 15 // Returns the brand code stored in Local State that has been assigned to a | 15 // Returns the brand code stored in Local State that has been assigned to a |
| 16 // partner. Returns empty string if the information is not available. | 16 // partner. Returns empty string if the information is not available. |
| 17 std::string GetBrand(); | 17 std::string GetBrand(); |
| 18 | 18 |
| 19 // Clears brand code for the current session (not persisted through browser | 19 // Clears brand code for the current session (not persisted through browser |
| 20 // restart). Future calls to GetBrand() will return an empty string. | 20 // restart). Future calls to GetBrand() will return an empty string. |
| 21 void ClearBrandForCurrentSession(); | 21 void ClearBrandForCurrentSession(); |
| 22 | 22 |
| 23 // Reads the brand code from a board-specific data file and stores it to | 23 // Reads the brand code from a board-specific data file and stores it to |
| 24 // Local State. | 24 // Local State. |
| 25 // |callback| is invoked on the calling thread after that. | 25 // |callback| is invoked on the calling thread after that. |
| 26 void InitBrand(const base::Closure& callback); | 26 void InitBrand(const base::Closure& callback); |
| 27 | 27 |
| 28 } // namespace chromeos | 28 } // namespace chromeos |
| 29 } // namespace google_util | 29 } // namespace google_brand |
| 30 | 30 |
| 31 #endif // CHROME_BROWSER_GOOGLE_GOOGLE_UTIL_CHROMEOS_H_ | 31 #endif // CHROME_BROWSER_GOOGLE_GOOGLE_BRAND_CHROMEOS_H_ |
| OLD | NEW |