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

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

Issue 99303009: Merge 241255 "[Mac] Passwords: Don't always prompt to access pas..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 7 years 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 | Annotate | Revision Log
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/password_store_default.h" 5 #include "chrome/browser/password_manager/password_store_default.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 chrome::NOTIFICATION_LOGINS_CHANGED, 89 chrome::NOTIFICATION_LOGINS_CHANGED,
90 content::Source<PasswordStore>(this), 90 content::Source<PasswordStore>(this),
91 content::Details<PasswordStoreChangeList>(&changes)); 91 content::Details<PasswordStoreChangeList>(&changes));
92 } 92 }
93 } 93 }
94 STLDeleteElements(&forms); 94 STLDeleteElements(&forms);
95 } 95 }
96 96
97 void PasswordStoreDefault::GetLoginsImpl( 97 void PasswordStoreDefault::GetLoginsImpl(
98 const autofill::PasswordForm& form, 98 const autofill::PasswordForm& form,
99 AuthorizationPromptPolicy prompt_policy,
99 const ConsumerCallbackRunner& callback_runner) { 100 const ConsumerCallbackRunner& callback_runner) {
100 std::vector<PasswordForm*> matched_forms; 101 std::vector<PasswordForm*> matched_forms;
101 login_db_->GetLogins(form, &matched_forms); 102 login_db_->GetLogins(form, &matched_forms);
102 callback_runner.Run(matched_forms); 103 callback_runner.Run(matched_forms);
103 } 104 }
104 105
105 void PasswordStoreDefault::GetAutofillableLoginsImpl( 106 void PasswordStoreDefault::GetAutofillableLoginsImpl(
106 GetLoginsRequest* request) { 107 GetLoginsRequest* request) {
107 FillAutofillableLogins(&request->value); 108 FillAutofillableLogins(&request->value);
108 ForwardLoginsResult(request); 109 ForwardLoginsResult(request);
109 } 110 }
110 111
111 void PasswordStoreDefault::GetBlacklistLoginsImpl( 112 void PasswordStoreDefault::GetBlacklistLoginsImpl(
112 GetLoginsRequest* request) { 113 GetLoginsRequest* request) {
113 FillBlacklistLogins(&request->value); 114 FillBlacklistLogins(&request->value);
114 ForwardLoginsResult(request); 115 ForwardLoginsResult(request);
115 } 116 }
116 117
117 bool PasswordStoreDefault::FillAutofillableLogins( 118 bool PasswordStoreDefault::FillAutofillableLogins(
118 std::vector<PasswordForm*>* forms) { 119 std::vector<PasswordForm*>* forms) {
119 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); 120 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
120 return login_db_->GetAutofillableLogins(forms); 121 return login_db_->GetAutofillableLogins(forms);
121 } 122 }
122 123
123 bool PasswordStoreDefault::FillBlacklistLogins( 124 bool PasswordStoreDefault::FillBlacklistLogins(
124 std::vector<PasswordForm*>* forms) { 125 std::vector<PasswordForm*>* forms) {
125 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); 126 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
126 return login_db_->GetBlacklistLogins(forms); 127 return login_db_->GetBlacklistLogins(forms);
127 } 128 }
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_store_default.h ('k') | chrome/browser/password_manager/password_store_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698