| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PROFILE_RESETTER_BRANDCODED_DEFAULT_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_PROFILE_RESETTER_BRANDCODED_DEFAULT_SETTINGS_H_ |
| 6 #define CHROME_BROWSER_PROFILE_RESETTER_BRANDCODED_DEFAULT_SETTINGS_H_ | 6 #define CHROME_BROWSER_PROFILE_RESETTER_BRANDCODED_DEFAULT_SETTINGS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 | 14 |
| 15 // BrandcodedDefaultSettings provides a set of default settings | 15 // BrandcodedDefaultSettings provides a set of default settings |
| 16 // for ProfileResetter. They are specific to Chrome distribution channels. | 16 // for ProfileResetter. They are specific to Chrome distribution channels. |
| 17 class BrandcodedDefaultSettings { | 17 class BrandcodedDefaultSettings { |
| 18 public: | 18 public: |
| 19 BrandcodedDefaultSettings(); | 19 BrandcodedDefaultSettings(); |
| 20 // Constructs BrandcodedDefaultSettings directly from preferences. | 20 // Constructs BrandcodedDefaultSettings directly from preferences. |
| 21 explicit BrandcodedDefaultSettings(const std::string& prefs); | 21 explicit BrandcodedDefaultSettings(const std::string& prefs); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 scoped_ptr<base::ListValue> ExtractList(const char* pref_name) const; | 41 scoped_ptr<base::ListValue> ExtractList(const char* pref_name) const; |
| 42 | 42 |
| 43 scoped_ptr<base::DictionaryValue> master_dictionary_; | 43 scoped_ptr<base::DictionaryValue> master_dictionary_; |
| 44 | 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(BrandcodedDefaultSettings); | 45 DISALLOW_COPY_AND_ASSIGN(BrandcodedDefaultSettings); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 #endif // CHROME_BROWSER_PROFILE_RESETTER_BRANDCODED_DEFAULT_SETTINGS_H_ | 48 #endif // CHROME_BROWSER_PROFILE_RESETTER_BRANDCODED_DEFAULT_SETTINGS_H_ |
| OLD | NEW |