| 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 #import "ios/chrome/browser/passwords/ios_chrome_password_manager_client.h" | 5 #import "ios/chrome/browser/passwords/ios_chrome_password_manager_client.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "components/autofill/core/common/password_form.h" | 10 #include "components/autofill/core/common/password_form.h" |
| 11 #include "components/browser_sync/profile_sync_service.h" | 11 #include "components/browser_sync/profile_sync_service.h" |
| 12 #include "components/keyed_service/core/service_access_type.h" | 12 #include "components/keyed_service/core/service_access_type.h" |
| 13 #include "components/password_manager/core/browser/password_form_manager.h" | 13 #include "components/password_manager/core/browser/password_form_manager.h" |
| 14 #include "components/password_manager/core/browser/password_manager_util.h" | 14 #include "components/password_manager/core/browser/password_manager_util.h" |
| 15 #include "components/password_manager/core/common/password_manager_pref_names.h" | 15 #include "components/password_manager/core/common/password_manager_pref_names.h" |
| 16 #include "components/signin/core/browser/signin_manager_base.h" | 16 #include "components/signin/core/browser/signin_manager_base.h" |
| 17 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 17 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
| 18 #include "ios/chrome/browser/experimental_flags.h" | 18 #include "ios/chrome/browser/experimental_flags.h" |
| 19 #include "ios/chrome/browser/passwords/ios_chrome_password_store_factory.h" | 19 #include "ios/chrome/browser/passwords/ios_chrome_password_store_factory.h" |
| 20 #include "ios/chrome/browser/signin/signin_manager_factory.h" | 20 #include "ios/chrome/browser/signin/signin_manager_factory.h" |
| 21 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h" | 21 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h" |
| 22 #include "url/gurl.h" | 22 #include "url/gurl.h" |
| 23 | 23 |
| 24 using password_manager::PasswordFormManager; | 24 using password_manager::PasswordFormManager; |
| 25 using password_manager::PasswordStore; | 25 using password_manager::PasswordStore; |
| 26 using password_manager::PasswordSyncState; | 26 using password_manager::PasswordSyncState; |
| 27 | 27 |
| 28 namespace { | 28 namespace { |
| 29 | 29 |
| 30 const sync_driver::SyncService* GetSyncService( | 30 const syncer::SyncService* GetSyncService( |
| 31 ios::ChromeBrowserState* browser_state) { | 31 ios::ChromeBrowserState* browser_state) { |
| 32 return IOSChromeProfileSyncServiceFactory::GetForBrowserStateIfExists( | 32 return IOSChromeProfileSyncServiceFactory::GetForBrowserStateIfExists( |
| 33 browser_state); | 33 browser_state); |
| 34 } | 34 } |
| 35 | 35 |
| 36 const SigninManagerBase* GetSigninManager( | 36 const SigninManagerBase* GetSigninManager( |
| 37 ios::ChromeBrowserState* browser_state) { | 37 ios::ChromeBrowserState* browser_state) { |
| 38 return ios::SigninManagerFactory::GetForBrowserState(browser_state); | 38 return ios::SigninManagerFactory::GetForBrowserState(browser_state); |
| 39 } | 39 } |
| 40 | 40 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 } | 132 } |
| 133 | 133 |
| 134 const GURL& IOSChromePasswordManagerClient::GetLastCommittedEntryURL() const { | 134 const GURL& IOSChromePasswordManagerClient::GetLastCommittedEntryURL() const { |
| 135 return delegate_.lastCommittedURL; | 135 return delegate_.lastCommittedURL; |
| 136 } | 136 } |
| 137 | 137 |
| 138 const password_manager::CredentialsFilter* | 138 const password_manager::CredentialsFilter* |
| 139 IOSChromePasswordManagerClient::GetStoreResultFilter() const { | 139 IOSChromePasswordManagerClient::GetStoreResultFilter() const { |
| 140 return &credentials_filter_; | 140 return &credentials_filter_; |
| 141 } | 141 } |
| OLD | NEW |