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

Side by Side Diff: chrome/browser/extensions/test_extension_prefs.h

Issue 2459823002: [Sync] Rename syncable_prefs to sync_preferences. (Closed)
Patch Set: Created 4 years, 1 month 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 (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_EXTENSIONS_TEST_EXTENSION_PREFS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_PREFS_H_
6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_PREFS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_PREFS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "chrome/test/base/testing_profile.h" 14 #include "chrome/test/base/testing_profile.h"
15 #include "extensions/common/manifest.h" 15 #include "extensions/common/manifest.h"
16 16
17 class ExtensionPrefValueMap; 17 class ExtensionPrefValueMap;
18 class PrefService; 18 class PrefService;
19 19
20 namespace base { 20 namespace base {
21 class DictionaryValue; 21 class DictionaryValue;
22 class SequencedTaskRunner; 22 class SequencedTaskRunner;
23 } 23 }
24 24
25 namespace syncable_prefs { 25 namespace sync_preferences {
26 class PrefServiceSyncable; 26 class PrefServiceSyncable;
27 } 27 }
28 28
29 namespace user_prefs { 29 namespace user_prefs {
30 class PrefRegistrySyncable; 30 class PrefRegistrySyncable;
31 } 31 }
32 32
33 namespace extensions { 33 namespace extensions {
34 class ChromeAppSorting; 34 class ChromeAppSorting;
35 class Extension; 35 class Extension;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // active after calling RecreateExtensionPrefs(). Defaults to false. 91 // active after calling RecreateExtensionPrefs(). Defaults to false.
92 void set_extensions_disabled(bool extensions_disabled); 92 void set_extensions_disabled(bool extensions_disabled);
93 93
94 ChromeAppSorting* app_sorting(); 94 ChromeAppSorting* app_sorting();
95 95
96 protected: 96 protected:
97 base::ScopedTempDir temp_dir_; 97 base::ScopedTempDir temp_dir_;
98 base::FilePath preferences_file_; 98 base::FilePath preferences_file_;
99 base::FilePath extensions_dir_; 99 base::FilePath extensions_dir_;
100 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; 100 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_;
101 std::unique_ptr<syncable_prefs::PrefServiceSyncable> pref_service_; 101 std::unique_ptr<sync_preferences::PrefServiceSyncable> pref_service_;
102 std::unique_ptr<ExtensionPrefValueMap> extension_pref_value_map_; 102 std::unique_ptr<ExtensionPrefValueMap> extension_pref_value_map_;
103 const scoped_refptr<base::SequencedTaskRunner> task_runner_; 103 const scoped_refptr<base::SequencedTaskRunner> task_runner_;
104 104
105 private: 105 private:
106 TestingProfile profile_; 106 TestingProfile profile_;
107 bool extensions_disabled_; 107 bool extensions_disabled_;
108 DISALLOW_COPY_AND_ASSIGN(TestExtensionPrefs); 108 DISALLOW_COPY_AND_ASSIGN(TestExtensionPrefs);
109 }; 109 };
110 110
111 } // namespace extensions 111 } // namespace extensions
112 112
113 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_PREFS_H_ 113 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/menu_manager_unittest.cc ('k') | chrome/browser/extensions/test_extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698