| 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/incognito_helpers.h" | 10 #include "chrome/browser/profiles/incognito_helpers.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/webdata/web_data_service_factory.h" | 12 #include "chrome/browser/webdata/web_data_service_factory.h" |
| 13 #include "components/autofill/browser/personal_data_manager.h" | 13 #include "components/autofill/core/browser/personal_data_manager.h" |
| 14 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" | 14 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" |
| 15 | 15 |
| 16 namespace autofill { | 16 namespace autofill { |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 class PersonalDataManagerServiceImpl : public PersonalDataManagerService { | 19 class PersonalDataManagerServiceImpl : public PersonalDataManagerService { |
| 20 public: | 20 public: |
| 21 explicit PersonalDataManagerServiceImpl(Profile* profile); | 21 explicit PersonalDataManagerServiceImpl(Profile* profile); |
| 22 virtual ~PersonalDataManagerServiceImpl(); | 22 virtual ~PersonalDataManagerServiceImpl(); |
| 23 | 23 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 new PersonalDataManagerServiceImpl(static_cast<Profile*>(profile)); | 83 new PersonalDataManagerServiceImpl(static_cast<Profile*>(profile)); |
| 84 return service; | 84 return service; |
| 85 } | 85 } |
| 86 | 86 |
| 87 content::BrowserContext* PersonalDataManagerFactory::GetBrowserContextToUse( | 87 content::BrowserContext* PersonalDataManagerFactory::GetBrowserContextToUse( |
| 88 content::BrowserContext* context) const { | 88 content::BrowserContext* context) const { |
| 89 return chrome::GetBrowserContextOwnInstanceInIncognito(context); | 89 return chrome::GetBrowserContextOwnInstanceInIncognito(context); |
| 90 } | 90 } |
| 91 | 91 |
| 92 } // namespace autofill | 92 } // namespace autofill |
| OLD | NEW |