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

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

Issue 89253002: Remove ExtensionPrefFactory's dependency on Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years 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/extension_sync_service_factory.h" 5 #include "chrome/browser/extensions/extension_sync_service_factory.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/extensions/extension_prefs_factory.h" 8 #include "chrome/browser/extensions/extension_prefs_factory.h"
9 #include "chrome/browser/extensions/extension_sync_service.h" 9 #include "chrome/browser/extensions/extension_sync_service.h"
10 #include "chrome/browser/extensions/extension_system.h" 10 #include "chrome/browser/extensions/extension_system.h"
(...skipping 23 matching lines...) Expand all
34 } 34 }
35 35
36 ExtensionSyncServiceFactory::~ExtensionSyncServiceFactory() {} 36 ExtensionSyncServiceFactory::~ExtensionSyncServiceFactory() {}
37 37
38 BrowserContextKeyedService* 38 BrowserContextKeyedService*
39 ExtensionSyncServiceFactory::BuildServiceInstanceFor( 39 ExtensionSyncServiceFactory::BuildServiceInstanceFor(
40 content::BrowserContext* context) const { 40 content::BrowserContext* context) const {
41 Profile* profile = Profile::FromBrowserContext(context); 41 Profile* profile = Profile::FromBrowserContext(context);
42 return new ExtensionSyncService( 42 return new ExtensionSyncService(
43 profile, 43 profile,
44 extensions::ExtensionPrefsFactory::GetForProfile(profile), 44 extensions::ExtensionPrefsFactory::GetForBrowserContext(profile),
45 extensions::ExtensionSystemFactory::GetForProfile(profile)-> 45 extensions::ExtensionSystemFactory::GetForProfile(profile)->
46 extension_service()); 46 extension_service());
47 } 47 }
48 48
49 content::BrowserContext* ExtensionSyncServiceFactory::GetBrowserContextToUse( 49 content::BrowserContext* ExtensionSyncServiceFactory::GetBrowserContextToUse(
50 content::BrowserContext* context) const { 50 content::BrowserContext* context) const {
51 return chrome::GetBrowserContextRedirectedInIncognito(context); 51 return chrome::GetBrowserContextRedirectedInIncognito(context);
52 } 52 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/extensions/extension_toolbar_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698