OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PREFS_CHROME_PREF_MODEL_ASSOCIATOR_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_PREFS_CHROME_PREF_MODEL_ASSOCIATOR_CLIENT_H_ |
6 #define CHROME_BROWSER_PREFS_CHROME_PREF_MODEL_ASSOCIATOR_CLIENT_H_ | 6 #define CHROME_BROWSER_PREFS_CHROME_PREF_MODEL_ASSOCIATOR_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "chrome/browser/prefs/pref_model_associator_client.h" | 11 #include "components/syncable_prefs/pref_model_associator_client.h" |
12 | 12 |
13 namespace base { | 13 namespace base { |
14 template <typename T> | 14 template <typename T> |
15 struct DefaultSingletonTraits; | 15 struct DefaultSingletonTraits; |
16 } | 16 } |
17 | 17 |
18 class ChromePrefModelAssociatorClient : public PrefModelAssociatorClient { | 18 class ChromePrefModelAssociatorClient : public PrefModelAssociatorClient { |
19 public: | 19 public: |
20 // Returns the global instance. | 20 // Returns the global instance. |
21 static ChromePrefModelAssociatorClient* GetInstance(); | 21 static ChromePrefModelAssociatorClient* GetInstance(); |
(...skipping 10 matching lines...) Expand all Loading... |
32 const std::string& pref_name) const override; | 32 const std::string& pref_name) const override; |
33 bool IsMigratedPreference(const std::string& new_pref_name, | 33 bool IsMigratedPreference(const std::string& new_pref_name, |
34 std::string* old_pref_name) const override; | 34 std::string* old_pref_name) const override; |
35 bool IsOldMigratedPreference(const std::string& old_pref_name, | 35 bool IsOldMigratedPreference(const std::string& old_pref_name, |
36 std::string* new_pref_name) const override; | 36 std::string* new_pref_name) const override; |
37 | 37 |
38 DISALLOW_COPY_AND_ASSIGN(ChromePrefModelAssociatorClient); | 38 DISALLOW_COPY_AND_ASSIGN(ChromePrefModelAssociatorClient); |
39 }; | 39 }; |
40 | 40 |
41 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_MODEL_ASSOCIATOR_CLIENT_H_ | 41 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_MODEL_ASSOCIATOR_CLIENT_H_ |
OLD | NEW |