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

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

Issue 155183002: Add ApiActivityMonitor to decouple ActivityLog from low-level extensions code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase3 (activity_log) Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "apps/shell/browser/shell_extensions_browser_client.h" 5 #include "apps/shell/browser/shell_extensions_browser_client.h"
6 6
7 #include "apps/shell/browser/shell_app_sorting.h" 7 #include "apps/shell/browser/shell_app_sorting.h"
8 #include "apps/shell/browser/shell_extension_system.h" 8 #include "apps/shell/browser/shell_extension_system.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/prefs/pref_service_factory.h" 10 #include "base/prefs/pref_service_factory.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 115 }
116 116
117 content::JavaScriptDialogManager* 117 content::JavaScriptDialogManager*
118 ShellExtensionsBrowserClient::GetJavaScriptDialogManager() { 118 ShellExtensionsBrowserClient::GetJavaScriptDialogManager() {
119 // TODO(jamescook): Create a JavaScriptDialogManager or reuse the one from 119 // TODO(jamescook): Create a JavaScriptDialogManager or reuse the one from
120 // content_shell. 120 // content_shell.
121 NOTREACHED(); 121 NOTREACHED();
122 return NULL; 122 return NULL;
123 } 123 }
124 124
125 ApiActivityMonitor* ShellExtensionsBrowserClient::GetApiActivityMonitor(
126 BrowserContext* context) {
127 // app_shell doesn't monitor API function calls or events.
128 return NULL;
129 }
130
125 std::vector<BrowserContextKeyedServiceFactory*> 131 std::vector<BrowserContextKeyedServiceFactory*>
126 ShellExtensionsBrowserClient::GetExtensionSystemDependencies() { 132 ShellExtensionsBrowserClient::GetExtensionSystemDependencies() {
127 return ShellExtensionSystem::GetDependencies(); 133 return ShellExtensionSystem::GetDependencies();
128 } 134 }
129 135
130 ExtensionSystem* ShellExtensionsBrowserClient::CreateExtensionSystem( 136 ExtensionSystem* ShellExtensionsBrowserClient::CreateExtensionSystem(
131 BrowserContext* context) { 137 BrowserContext* context) {
132 return new ShellExtensionSystem(context); 138 return new ShellExtensionSystem(context);
133 } 139 }
134 140
135 } // namespace extensions 141 } // namespace extensions
OLDNEW
« no previous file with comments | « apps/shell/browser/shell_extensions_browser_client.h ('k') | chrome/browser/extensions/activity_log/activity_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698