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

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

Issue 549663002: Move AppWindowGeometryCacheTest to extensions_unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (app-window) rebase 2 Created 6 years, 3 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_app_sorting.cc ('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 "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
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
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
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_app_sorting.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698