Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: chrome/browser/prefs/chrome_pref_model_associator_client.h

Issue 1305213009: Componentize PrefSyncableService and support classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_service_syncable
Patch Set: Add missing dependency on //sync:test_support_sync_api for unit tests with gn Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/prefs/chrome_pref_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698