| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "components/autofill/core/common/password_form.h" | 10 #include "components/autofill/core/common/password_form.h" |
| 11 #include "components/browser_sync/browser/profile_sync_service.h" | 11 #include "components/browser_sync/browser/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/passwords/ios_chrome_password_store_factory.h" | 18 #include "ios/chrome/browser/passwords/ios_chrome_password_store_factory.h" |
| 18 #include "ios/chrome/browser/signin/signin_manager_factory.h" | 19 #include "ios/chrome/browser/signin/signin_manager_factory.h" |
| 19 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h" | 20 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h" |
| 20 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.
h" | |
| 21 #include "url/gurl.h" | 21 #include "url/gurl.h" |
| 22 | 22 |
| 23 using password_manager::PasswordFormManager; | 23 using password_manager::PasswordFormManager; |
| 24 using password_manager::PasswordStore; | 24 using password_manager::PasswordStore; |
| 25 using password_manager::PasswordSyncState; | 25 using password_manager::PasswordSyncState; |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 const sync_driver::SyncService* GetSyncService( | 29 const sync_driver::SyncService* GetSyncService( |
| 30 ios::ChromeBrowserState* browser_state) { | 30 ios::ChromeBrowserState* browser_state) { |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 } | 112 } |
| 113 | 113 |
| 114 const GURL& IOSChromePasswordManagerClient::GetLastCommittedEntryURL() const { | 114 const GURL& IOSChromePasswordManagerClient::GetLastCommittedEntryURL() const { |
| 115 return delegate_.lastCommittedURL; | 115 return delegate_.lastCommittedURL; |
| 116 } | 116 } |
| 117 | 117 |
| 118 const password_manager::CredentialsFilter* | 118 const password_manager::CredentialsFilter* |
| 119 IOSChromePasswordManagerClient::GetStoreResultFilter() const { | 119 IOSChromePasswordManagerClient::GetStoreResultFilter() const { |
| 120 return &credentials_filter_; | 120 return &credentials_filter_; |
| 121 } | 121 } |
| OLD | NEW |