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

Side by Side Diff: chrome/browser/extensions/chrome_extensions_browser_client.cc

Issue 137753016: ExtensionSystem cleanup part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 "chrome/browser/extensions/chrome_extensions_browser_client.h" 5 #include "chrome/browser/extensions/chrome_extensions_browser_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/version.h" 8 #include "base/version.h"
9 #include "chrome/browser/app_mode/app_mode_utils.h" 9 #include "chrome/browser/app_mode/app_mode_utils.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 ChromeExtensionsBrowserClient::GetJavaScriptDialogManager() { 191 ChromeExtensionsBrowserClient::GetJavaScriptDialogManager() {
192 return GetJavaScriptDialogManagerInstance(); 192 return GetJavaScriptDialogManagerInstance();
193 } 193 }
194 194
195 ApiActivityMonitor* ChromeExtensionsBrowserClient::GetApiActivityMonitor( 195 ApiActivityMonitor* ChromeExtensionsBrowserClient::GetApiActivityMonitor(
196 content::BrowserContext* context) { 196 content::BrowserContext* context) {
197 // The ActivityLog monitors and records function calls and events. 197 // The ActivityLog monitors and records function calls and events.
198 return ActivityLog::GetInstance(context); 198 return ActivityLog::GetInstance(context);
199 } 199 }
200 200
201 std::vector<BrowserContextKeyedServiceFactory*> 201 ExtensionSystemProvider*
202 ChromeExtensionsBrowserClient::GetExtensionSystemDependencies() { 202 ChromeExtensionsBrowserClient::GetExtensionSystemFactory() {
203 std::vector<BrowserContextKeyedServiceFactory*> dependencies; 203 return ExtensionSystemFactory::GetInstance();
204 dependencies.push_back(ExtensionSystemSharedFactory::GetInstance());
205 return dependencies;
206 }
207
208 ExtensionSystem* ChromeExtensionsBrowserClient::CreateExtensionSystem(
209 content::BrowserContext* context) {
210 return new ExtensionSystemImpl(static_cast<Profile*>(context));
211 } 204 }
212 205
213 } // namespace extensions 206 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/chrome_extensions_browser_client.h ('k') | chrome/browser/extensions/extension_system_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698