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

Side by Side Diff: chrome/browser/autofill/personal_data_manager_factory.cc

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/autofill/personal_data_manager_factory.h" 5 #include "chrome/browser/autofill/personal_data_manager_factory.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 PersonalDataManagerFactory::PersonalDataManagerFactory() 69 PersonalDataManagerFactory::PersonalDataManagerFactory()
70 : ProfileKeyedServiceFactory("PersonalDataManager", 70 : ProfileKeyedServiceFactory("PersonalDataManager",
71 ProfileDependencyManager::GetInstance()) { 71 ProfileDependencyManager::GetInstance()) {
72 DependsOn(WebDataServiceFactory::GetInstance()); 72 DependsOn(WebDataServiceFactory::GetInstance());
73 } 73 }
74 74
75 PersonalDataManagerFactory::~PersonalDataManagerFactory() { 75 PersonalDataManagerFactory::~PersonalDataManagerFactory() {
76 } 76 }
77 77
78 ProfileKeyedService* PersonalDataManagerFactory::BuildServiceInstanceFor( 78 ProfileKeyedService* PersonalDataManagerFactory::BuildServiceInstanceFor(
79 Profile* profile) const { 79 content::BrowserContext* profile) const {
80 PersonalDataManagerService* service = 80 PersonalDataManagerService* service =
81 new PersonalDataManagerServiceImpl(profile); 81 new PersonalDataManagerServiceImpl(static_cast<Profile*>(profile));
82 return service; 82 return service;
83 } 83 }
84 84
85 } // namespace autofill 85 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698