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> |
| 8 |
7 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
8 #include "components/autofill/core/common/password_form.h" | 10 #include "components/autofill/core/common/password_form.h" |
9 #include "components/browser_sync/browser/profile_sync_service.h" | 11 #include "components/browser_sync/browser/profile_sync_service.h" |
10 #include "components/keyed_service/core/service_access_type.h" | 12 #include "components/keyed_service/core/service_access_type.h" |
11 #include "components/password_manager/core/browser/password_form_manager.h" | 13 #include "components/password_manager/core/browser/password_form_manager.h" |
12 #include "components/password_manager/core/browser/password_manager_util.h" | 14 #include "components/password_manager/core/browser/password_manager_util.h" |
13 #include "components/password_manager/core/common/password_manager_pref_names.h" | 15 #include "components/password_manager/core/common/password_manager_pref_names.h" |
14 #include "components/signin/core/browser/signin_manager_base.h" | 16 #include "components/signin/core/browser/signin_manager_base.h" |
15 #include "ios/chrome/browser/passwords/ios_chrome_password_store_factory.h" | 17 #include "ios/chrome/browser/passwords/ios_chrome_password_store_factory.h" |
16 #include "ios/chrome/browser/signin/signin_manager_factory.h" | 18 #include "ios/chrome/browser/signin/signin_manager_factory.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 NOTIMPLEMENTED(); | 67 NOTIMPLEMENTED(); |
66 return false; | 68 return false; |
67 } | 69 } |
68 | 70 |
69 bool IOSChromePasswordManagerClient::PromptUserToSaveOrUpdatePassword( | 71 bool IOSChromePasswordManagerClient::PromptUserToSaveOrUpdatePassword( |
70 scoped_ptr<PasswordFormManager> form_to_save, | 72 scoped_ptr<PasswordFormManager> form_to_save, |
71 password_manager::CredentialSourceType type, | 73 password_manager::CredentialSourceType type, |
72 bool update_password) { | 74 bool update_password) { |
73 if (form_to_save->IsBlacklisted()) | 75 if (form_to_save->IsBlacklisted()) |
74 return false; | 76 return false; |
75 [delegate_ showSavePasswordInfoBar:form_to_save.Pass()]; | 77 [delegate_ showSavePasswordInfoBar:std::move(form_to_save)]; |
76 return true; | 78 return true; |
77 } | 79 } |
78 | 80 |
79 void IOSChromePasswordManagerClient::AutomaticPasswordSave( | 81 void IOSChromePasswordManagerClient::AutomaticPasswordSave( |
80 scoped_ptr<PasswordFormManager> saved_form_manager) { | 82 scoped_ptr<PasswordFormManager> saved_form_manager) { |
81 NOTIMPLEMENTED(); | 83 NOTIMPLEMENTED(); |
82 } | 84 } |
83 | 85 |
84 bool IOSChromePasswordManagerClient::IsOffTheRecord() const { | 86 bool IOSChromePasswordManagerClient::IsOffTheRecord() const { |
85 return (delegate_.browserState)->IsOffTheRecord(); | 87 return (delegate_.browserState)->IsOffTheRecord(); |
(...skipping 24 matching lines...) Expand all Loading... |
110 } | 112 } |
111 | 113 |
112 const GURL& IOSChromePasswordManagerClient::GetLastCommittedEntryURL() const { | 114 const GURL& IOSChromePasswordManagerClient::GetLastCommittedEntryURL() const { |
113 return delegate_.lastCommittedURL; | 115 return delegate_.lastCommittedURL; |
114 } | 116 } |
115 | 117 |
116 const password_manager::CredentialsFilter* | 118 const password_manager::CredentialsFilter* |
117 IOSChromePasswordManagerClient::GetStoreResultFilter() const { | 119 IOSChromePasswordManagerClient::GetStoreResultFilter() const { |
118 return &credentials_filter_; | 120 return &credentials_filter_; |
119 } | 121 } |
OLD | NEW |