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

Side by Side Diff: extensions/shell/browser/shell_extensions_browser_client.cc

Issue 1254363004: Move ownership of AppSorting from ExtensionPrefs to ExtensionSystem (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing include Created 5 years, 4 months 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
« no previous file with comments | « extensions/shell/browser/shell_extensions_browser_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "content/public/browser/browser_context.h" 7 #include "content/public/browser/browser_context.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 #include "content/public/browser/render_frame_host.h" 9 #include "content/public/browser/render_frame_host.h"
10 #include "extensions/browser/api/extensions_api_client.h" 10 #include "extensions/browser/api/extensions_api_client.h"
11 #include "extensions/browser/api/generated_api_registration.h" 11 #include "extensions/browser/api/generated_api_registration.h"
12 #include "extensions/browser/app_sorting.h"
13 #include "extensions/browser/event_router.h" 12 #include "extensions/browser/event_router.h"
14 #include "extensions/browser/extension_function_registry.h" 13 #include "extensions/browser/extension_function_registry.h"
15 #include "extensions/browser/mojo/service_registration.h" 14 #include "extensions/browser/mojo/service_registration.h"
16 #include "extensions/browser/null_app_sorting.h" 15 #include "extensions/browser/null_app_sorting.h"
17 #include "extensions/browser/updater/null_extension_cache.h" 16 #include "extensions/browser/updater/null_extension_cache.h"
18 #include "extensions/browser/url_request_util.h" 17 #include "extensions/browser/url_request_util.h"
19 #include "extensions/shell/browser/api/generated_api_registration.h" 18 #include "extensions/shell/browser/api/generated_api_registration.h"
20 #include "extensions/shell/browser/shell_extension_host_delegate.h" 19 #include "extensions/shell/browser/shell_extension_host_delegate.h"
21 #include "extensions/shell/browser/shell_extension_system_factory.h" 20 #include "extensions/shell/browser/shell_extension_system_factory.h"
22 #include "extensions/shell/browser/shell_extension_web_contents_observer.h" 21 #include "extensions/shell/browser/shell_extension_web_contents_observer.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 } 148 }
150 149
151 bool ShellExtensionsBrowserClient::DidVersionUpdate(BrowserContext* context) { 150 bool ShellExtensionsBrowserClient::DidVersionUpdate(BrowserContext* context) {
152 // TODO(jamescook): We might want to tell extensions when app_shell updates. 151 // TODO(jamescook): We might want to tell extensions when app_shell updates.
153 return false; 152 return false;
154 } 153 }
155 154
156 void ShellExtensionsBrowserClient::PermitExternalProtocolHandler() { 155 void ShellExtensionsBrowserClient::PermitExternalProtocolHandler() {
157 } 156 }
158 157
159 scoped_ptr<AppSorting> ShellExtensionsBrowserClient::CreateAppSorting(
160 content::BrowserContext* context) {
161 return scoped_ptr<AppSorting>(new NullAppSorting);
162 }
163
164 bool ShellExtensionsBrowserClient::IsRunningInForcedAppMode() { 158 bool ShellExtensionsBrowserClient::IsRunningInForcedAppMode() {
165 return false; 159 return false;
166 } 160 }
167 161
168 ApiActivityMonitor* ShellExtensionsBrowserClient::GetApiActivityMonitor( 162 ApiActivityMonitor* ShellExtensionsBrowserClient::GetApiActivityMonitor(
169 BrowserContext* context) { 163 BrowserContext* context) {
170 // app_shell doesn't monitor API function calls or events. 164 // app_shell doesn't monitor API function calls or events.
171 return NULL; 165 return NULL;
172 } 166 }
173 167
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 api_client_.reset(api_client); 235 api_client_.reset(api_client);
242 } 236 }
243 237
244 ExtensionWebContentsObserver* 238 ExtensionWebContentsObserver*
245 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver( 239 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver(
246 content::WebContents* web_contents) { 240 content::WebContents* web_contents) {
247 return ShellExtensionWebContentsObserver::FromWebContents(web_contents); 241 return ShellExtensionWebContentsObserver::FromWebContents(web_contents);
248 } 242 }
249 243
250 } // namespace extensions 244 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_extensions_browser_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698