OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "extensions/shell/browser/shell_prefs.h" | 5 #include "extensions/shell/browser/shell_prefs.h" |
6 | 6 |
| 7 #include "base/sequenced_task_runner.h" |
7 #include "build/build_config.h" | 8 #include "build/build_config.h" |
8 #include "components/pref_registry/pref_registry_syncable.h" | 9 #include "components/pref_registry/pref_registry_syncable.h" |
9 #include "components/prefs/json_pref_store.h" | 10 #include "components/prefs/json_pref_store.h" |
10 #include "components/prefs/pref_filter.h" | 11 #include "components/prefs/pref_filter.h" |
11 #include "components/prefs/pref_registry_simple.h" | 12 #include "components/prefs/pref_registry_simple.h" |
12 #include "components/prefs/pref_service.h" | 13 #include "components/prefs/pref_service.h" |
13 #include "components/prefs/pref_service_factory.h" | 14 #include "components/prefs/pref_service_factory.h" |
14 #include "components/user_prefs/user_prefs.h" | 15 #include "components/user_prefs/user_prefs.h" |
15 #include "content/public/browser/browser_context.h" | 16 #include "content/public/browser/browser_context.h" |
16 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 AudioAPI::RegisterUserPrefs(pref_registry); | 85 AudioAPI::RegisterUserPrefs(pref_registry); |
85 | 86 |
86 std::unique_ptr<PrefService> pref_service = factory.Create(pref_registry); | 87 std::unique_ptr<PrefService> pref_service = factory.Create(pref_registry); |
87 user_prefs::UserPrefs::Set(browser_context, pref_service.get()); | 88 user_prefs::UserPrefs::Set(browser_context, pref_service.get()); |
88 return pref_service; | 89 return pref_service; |
89 } | 90 } |
90 | 91 |
91 } // namespace shell_prefs | 92 } // namespace shell_prefs |
92 | 93 |
93 } // namespace extensions | 94 } // namespace extensions |
OLD | NEW |