OLD | NEW |
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 Loading... |
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 |
OLD | NEW |