| 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/autofill/personal_data_manager.h" | |
| 10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/profiles/profile_dependency_manager.h" | 10 #include "chrome/browser/profiles/profile_dependency_manager.h" |
| 12 #include "chrome/browser/webdata/web_data_service_factory.h" | 11 #include "chrome/browser/webdata/web_data_service_factory.h" |
| 12 #include "components/autofill/browser/personal_data_manager.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 class PersonalDataManagerServiceImpl : public PersonalDataManagerService { | 16 class PersonalDataManagerServiceImpl : public PersonalDataManagerService { |
| 17 public: | 17 public: |
| 18 PersonalDataManagerServiceImpl(Profile* profile); | 18 PersonalDataManagerServiceImpl(Profile* profile); |
| 19 virtual ~PersonalDataManagerServiceImpl(); | 19 virtual ~PersonalDataManagerServiceImpl(); |
| 20 | 20 |
| 21 // PersonalDataManagerService: | 21 // PersonalDataManagerService: |
| 22 virtual void Shutdown() OVERRIDE; | 22 virtual void Shutdown() OVERRIDE; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 PersonalDataManagerFactory::~PersonalDataManagerFactory() { | 72 PersonalDataManagerFactory::~PersonalDataManagerFactory() { |
| 73 } | 73 } |
| 74 | 74 |
| 75 ProfileKeyedService* PersonalDataManagerFactory::BuildServiceInstanceFor( | 75 ProfileKeyedService* PersonalDataManagerFactory::BuildServiceInstanceFor( |
| 76 Profile* profile) const { | 76 Profile* profile) const { |
| 77 PersonalDataManagerService* service = | 77 PersonalDataManagerService* service = |
| 78 new PersonalDataManagerServiceImpl(profile); | 78 new PersonalDataManagerServiceImpl(profile); |
| 79 return service; | 79 return service; |
| 80 } | 80 } |
| OLD | NEW |