Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: chrome/browser/password_manager/native_backend_kwallet_x.cc

Issue 2133953002: PasswordForm -> FormDigest for GetLogins (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@413020_ssl_valid
Patch Set: Nits addressed Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698