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/browser/extension_prefs_factory.h" | 5 #include "extensions/browser/extension_prefs_factory.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/prefs/pref_service.h" | |
11 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 10 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 11 #include "components/prefs/pref_service.h" |
12 #include "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
13 #include "extensions/browser/extension_pref_value_map.h" | 13 #include "extensions/browser/extension_pref_value_map.h" |
14 #include "extensions/browser/extension_pref_value_map_factory.h" | 14 #include "extensions/browser/extension_pref_value_map_factory.h" |
15 #include "extensions/browser/extension_prefs.h" | 15 #include "extensions/browser/extension_prefs.h" |
16 #include "extensions/browser/extensions_browser_client.h" | 16 #include "extensions/browser/extensions_browser_client.h" |
17 #include "extensions/common/constants.h" | 17 #include "extensions/common/constants.h" |
18 | 18 |
19 namespace extensions { | 19 namespace extensions { |
20 | 20 |
21 // static | 21 // static |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 context), | 59 context), |
60 prefs_observers); | 60 prefs_observers); |
61 } | 61 } |
62 | 62 |
63 content::BrowserContext* ExtensionPrefsFactory::GetBrowserContextToUse( | 63 content::BrowserContext* ExtensionPrefsFactory::GetBrowserContextToUse( |
64 content::BrowserContext* context) const { | 64 content::BrowserContext* context) const { |
65 return ExtensionsBrowserClient::Get()->GetOriginalContext(context); | 65 return ExtensionsBrowserClient::Get()->GetOriginalContext(context); |
66 } | 66 } |
67 | 67 |
68 } // namespace extensions | 68 } // namespace extensions |
OLD | NEW |