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_extensions_browser_client.h" | 5 #include "extensions/shell/browser/shell_extensions_browser_client.h" |
6 | 6 |
7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
8 #include "base/prefs/pref_service_factory.h" | 8 #include "base/prefs/pref_service_factory.h" |
9 #include "base/prefs/testing_pref_store.h" | 9 #include "base/prefs/testing_pref_store.h" |
10 #include "components/pref_registry/pref_registry_syncable.h" | 10 #include "components/pref_registry/pref_registry_syncable.h" |
11 #include "components/user_prefs/user_prefs.h" | 11 #include "components/user_prefs/user_prefs.h" |
12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
13 #include "extensions/browser/api/extensions_api_client.h" | 13 #include "extensions/browser/api/extensions_api_client.h" |
14 #include "extensions/browser/api/generated_api_registration.h" | 14 #include "extensions/browser/api/generated_api_registration.h" |
15 #include "extensions/browser/app_sorting.h" | 15 #include "extensions/browser/app_sorting.h" |
16 #include "extensions/browser/event_router.h" | 16 #include "extensions/browser/event_router.h" |
17 #include "extensions/browser/extension_function_registry.h" | 17 #include "extensions/browser/extension_function_registry.h" |
18 #include "extensions/browser/extension_prefs.h" | 18 #include "extensions/browser/extension_prefs.h" |
| 19 #include "extensions/browser/null_app_sorting.h" |
19 #include "extensions/shell/browser/api/generated_api_registration.h" | 20 #include "extensions/shell/browser/api/generated_api_registration.h" |
20 #include "extensions/shell/browser/shell_app_sorting.h" | |
21 #include "extensions/shell/browser/shell_extension_host_delegate.h" | 21 #include "extensions/shell/browser/shell_extension_host_delegate.h" |
22 #include "extensions/shell/browser/shell_extension_system_factory.h" | 22 #include "extensions/shell/browser/shell_extension_system_factory.h" |
23 #include "extensions/shell/browser/shell_runtime_api_delegate.h" | 23 #include "extensions/shell/browser/shell_runtime_api_delegate.h" |
24 | 24 |
25 using content::BrowserContext; | 25 using content::BrowserContext; |
26 using content::BrowserThread; | 26 using content::BrowserThread; |
27 | 27 |
28 namespace extensions { | 28 namespace extensions { |
29 namespace { | 29 namespace { |
30 | 30 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 154 |
155 bool ShellExtensionsBrowserClient::DidVersionUpdate(BrowserContext* context) { | 155 bool ShellExtensionsBrowserClient::DidVersionUpdate(BrowserContext* context) { |
156 // TODO(jamescook): We might want to tell extensions when app_shell updates. | 156 // TODO(jamescook): We might want to tell extensions when app_shell updates. |
157 return false; | 157 return false; |
158 } | 158 } |
159 | 159 |
160 void ShellExtensionsBrowserClient::PermitExternalProtocolHandler() { | 160 void ShellExtensionsBrowserClient::PermitExternalProtocolHandler() { |
161 } | 161 } |
162 | 162 |
163 scoped_ptr<AppSorting> ShellExtensionsBrowserClient::CreateAppSorting() { | 163 scoped_ptr<AppSorting> ShellExtensionsBrowserClient::CreateAppSorting() { |
164 return scoped_ptr<AppSorting>(new ShellAppSorting); | 164 return scoped_ptr<AppSorting>(new NullAppSorting); |
165 } | 165 } |
166 | 166 |
167 bool ShellExtensionsBrowserClient::IsRunningInForcedAppMode() { | 167 bool ShellExtensionsBrowserClient::IsRunningInForcedAppMode() { |
168 return false; | 168 return false; |
169 } | 169 } |
170 | 170 |
171 ApiActivityMonitor* ShellExtensionsBrowserClient::GetApiActivityMonitor( | 171 ApiActivityMonitor* ShellExtensionsBrowserClient::GetApiActivityMonitor( |
172 BrowserContext* context) { | 172 BrowserContext* context) { |
173 // app_shell doesn't monitor API function calls or events. | 173 // app_shell doesn't monitor API function calls or events. |
174 return NULL; | 174 return NULL; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 215 |
216 scoped_ptr<Event> event(new Event(event_name, args.Pass())); | 216 scoped_ptr<Event> event(new Event(event_name, args.Pass())); |
217 EventRouter::Get(browser_context_)->BroadcastEvent(event.Pass()); | 217 EventRouter::Get(browser_context_)->BroadcastEvent(event.Pass()); |
218 } | 218 } |
219 | 219 |
220 net::NetLog* ShellExtensionsBrowserClient::GetNetLog() { | 220 net::NetLog* ShellExtensionsBrowserClient::GetNetLog() { |
221 return NULL; | 221 return NULL; |
222 } | 222 } |
223 | 223 |
224 } // namespace extensions | 224 } // namespace extensions |
OLD | NEW |