Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/autofill/personal_data_manager_factory.h" | 5 #include "ios/chrome/browser/autofill/personal_data_manager_factory.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
| 10 #include "components/autofill/core/browser/personal_data_manager.h" | 10 #include "components/autofill/core/browser/personal_data_manager.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 } | 43 } |
| 44 | 44 |
| 45 PersonalDataManagerFactory::~PersonalDataManagerFactory() {} | 45 PersonalDataManagerFactory::~PersonalDataManagerFactory() {} |
| 46 | 46 |
| 47 std::unique_ptr<KeyedService> | 47 std::unique_ptr<KeyedService> |
| 48 PersonalDataManagerFactory::BuildServiceInstanceFor( | 48 PersonalDataManagerFactory::BuildServiceInstanceFor( |
| 49 web::BrowserState* context) const { | 49 web::BrowserState* context) const { |
| 50 ios::ChromeBrowserState* chrome_browser_state = | 50 ios::ChromeBrowserState* chrome_browser_state = |
| 51 ios::ChromeBrowserState::FromBrowserState(context); | 51 ios::ChromeBrowserState::FromBrowserState(context); |
| 52 std::unique_ptr<PersonalDataManager> service( | 52 std::unique_ptr<PersonalDataManager> service( |
| 53 new PersonalDataManager(GetApplicationContext()->GetApplicationLocale())); | 53 new PersonalDataManager(GetApplicationContext()->GetApplicationLocale(), |
| 54 nullptr /* ukm::UkmService */)); | |
|
Mathieu
2017/03/08 22:33:49
is there no ukm service on iOS?
| |
| 54 service->Init( | 55 service->Init( |
| 55 ios::WebDataServiceFactory::GetAutofillWebDataForBrowserState( | 56 ios::WebDataServiceFactory::GetAutofillWebDataForBrowserState( |
| 56 chrome_browser_state, ServiceAccessType::EXPLICIT_ACCESS), | 57 chrome_browser_state, ServiceAccessType::EXPLICIT_ACCESS), |
| 57 chrome_browser_state->GetPrefs(), | 58 chrome_browser_state->GetPrefs(), |
| 58 ios::AccountTrackerServiceFactory::GetForBrowserState( | 59 ios::AccountTrackerServiceFactory::GetForBrowserState( |
| 59 chrome_browser_state), | 60 chrome_browser_state), |
| 60 ios::SigninManagerFactory::GetForBrowserState(chrome_browser_state), | 61 ios::SigninManagerFactory::GetForBrowserState(chrome_browser_state), |
| 61 chrome_browser_state->IsOffTheRecord()); | 62 chrome_browser_state->IsOffTheRecord()); |
| 62 return std::move(service); | 63 return std::move(service); |
| 63 } | 64 } |
| 64 | 65 |
| 65 } // namespace autofill | 66 } // namespace autofill |
| OLD | NEW |