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/test_extensions_browser_client.h" | 5 #include "extensions/browser/test_extensions_browser_client.h" |
6 | 6 |
7 #include "content/public/browser/browser_context.h" | 7 #include "content/public/browser/browser_context.h" |
8 #include "extensions/browser/app_sorting.h" | 8 #include "extensions/browser/app_sorting.h" |
9 #include "extensions/browser/extension_host_delegate.h" | 9 #include "extensions/browser/extension_host_delegate.h" |
10 | 10 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 const extensions::Extension* extension, | 81 const extensions::Extension* extension, |
82 content::BrowserContext* context) const { | 82 content::BrowserContext* context) const { |
83 return false; | 83 return false; |
84 } | 84 } |
85 | 85 |
86 PrefService* TestExtensionsBrowserClient::GetPrefServiceForContext( | 86 PrefService* TestExtensionsBrowserClient::GetPrefServiceForContext( |
87 BrowserContext* context) { | 87 BrowserContext* context) { |
88 return NULL; | 88 return NULL; |
89 } | 89 } |
90 | 90 |
| 91 void TestExtensionsBrowserClient::GetEarlyExtensionPrefsObservers( |
| 92 content::BrowserContext* context, |
| 93 std::vector<ExtensionPrefsObserver*>* observers) const {} |
| 94 |
91 bool TestExtensionsBrowserClient::DeferLoadingBackgroundHosts( | 95 bool TestExtensionsBrowserClient::DeferLoadingBackgroundHosts( |
92 BrowserContext* context) const { | 96 BrowserContext* context) const { |
93 return false; | 97 return false; |
94 } | 98 } |
95 | 99 |
96 bool TestExtensionsBrowserClient::IsBackgroundPageAllowed( | 100 bool TestExtensionsBrowserClient::IsBackgroundPageAllowed( |
97 BrowserContext* context) const { | 101 BrowserContext* context) const { |
98 return true; | 102 return true; |
99 } | 103 } |
100 | 104 |
(...skipping 23 matching lines...) Expand all Loading... |
124 TestExtensionsBrowserClient::GetExtensionSystemFactory() { | 128 TestExtensionsBrowserClient::GetExtensionSystemFactory() { |
125 // Tests requiring an extension system should override this function. | 129 // Tests requiring an extension system should override this function. |
126 NOTREACHED(); | 130 NOTREACHED(); |
127 return NULL; | 131 return NULL; |
128 } | 132 } |
129 | 133 |
130 void TestExtensionsBrowserClient::RegisterExtensionFunctions( | 134 void TestExtensionsBrowserClient::RegisterExtensionFunctions( |
131 ExtensionFunctionRegistry* registry) const {} | 135 ExtensionFunctionRegistry* registry) const {} |
132 | 136 |
133 } // namespace extensions | 137 } // namespace extensions |
OLD | NEW |