| 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/password_manager/native_backend_kwallet_x.h" | 5 #include "chrome/browser/password_manager/native_backend_kwallet_x.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 if (origin_filter.Run(form->origin) && !form->skip_zero_click) { | 520 if (origin_filter.Run(form->origin) && !form->skip_zero_click) { |
| 521 form->skip_zero_click = true; | 521 form->skip_zero_click = true; |
| 522 if (!UpdateLogin(*form, changes)) | 522 if (!UpdateLogin(*form, changes)) |
| 523 return false; | 523 return false; |
| 524 } | 524 } |
| 525 } | 525 } |
| 526 return true; | 526 return true; |
| 527 } | 527 } |
| 528 | 528 |
| 529 bool NativeBackendKWallet::GetLogins( | 529 bool NativeBackendKWallet::GetLogins( |
| 530 const PasswordForm& form, | 530 const password_manager::PasswordStore::FormDigest& form, |
| 531 ScopedVector<autofill::PasswordForm>* forms) { | 531 ScopedVector<autofill::PasswordForm>* forms) { |
| 532 int wallet_handle = WalletHandle(); | 532 int wallet_handle = WalletHandle(); |
| 533 if (wallet_handle == kInvalidKWalletHandle) | 533 if (wallet_handle == kInvalidKWalletHandle) |
| 534 return false; | 534 return false; |
| 535 return GetLoginsList(form.signon_realm, wallet_handle, forms); | 535 return GetLoginsList(form.signon_realm, wallet_handle, forms); |
| 536 } | 536 } |
| 537 | 537 |
| 538 bool NativeBackendKWallet::GetAutofillableLogins( | 538 bool NativeBackendKWallet::GetAutofillableLogins( |
| 539 ScopedVector<autofill::PasswordForm>* forms) { | 539 ScopedVector<autofill::PasswordForm>* forms) { |
| 540 int wallet_handle = WalletHandle(); | 540 int wallet_handle = WalletHandle(); |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 } | 834 } |
| 835 | 835 |
| 836 return handle; | 836 return handle; |
| 837 } | 837 } |
| 838 | 838 |
| 839 std::string NativeBackendKWallet::GetProfileSpecificFolderName() const { | 839 std::string NativeBackendKWallet::GetProfileSpecificFolderName() const { |
| 840 // Originally, the folder name was always just "Chrome Form Data". | 840 // Originally, the folder name was always just "Chrome Form Data". |
| 841 // Now we use it to distinguish passwords for different profiles. | 841 // Now we use it to distinguish passwords for different profiles. |
| 842 return base::StringPrintf("%s (%d)", kKWalletFolder, profile_id_); | 842 return base::StringPrintf("%s (%d)", kKWalletFolder, profile_id_); |
| 843 } | 843 } |
| OLD | NEW |