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

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

Issue 10209036: Per bug 121738, ignore old saved logins for http*://www.google.com. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: use base::Time Created 8 years, 7 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 | 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_win.h" 5 #include "chrome/browser/password_manager/password_store_win.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 DCHECK_EQ(PASSWORD_IE7_RESULT, result->GetType()); 159 DCHECK_EQ(PASSWORD_IE7_RESULT, result->GetType());
160 PasswordForm* form = 160 PasswordForm* form =
161 static_cast<FormGetLoginsRequest*>(request.get())->form(); 161 static_cast<FormGetLoginsRequest*>(request.get())->form();
162 DCHECK(form); 162 DCHECK(form);
163 PasswordForm* ie7_form = GetIE7Result(result, *form); 163 PasswordForm* ie7_form = GetIE7Result(result, *form);
164 164
165 if (ie7_form) 165 if (ie7_form)
166 request->value.push_back(ie7_form); 166 request->value.push_back(ie7_form);
167 167
168 // Since we aren't using ForwardLoginsResult(), we must call
169 // ApplyIgnoreLoginsCutoff() manually here as is done in
170 // PasswordStore::ForwardLoginsResult().
171 request->ApplyIgnoreLoginsCutoff();
168 request->ForwardResult(request->handle(), request->value); 172 request->ForwardResult(request->handle(), request->value);
169 } 173 }
170 174
171 PasswordStoreWin::PasswordStoreWin(LoginDatabase* login_database, 175 PasswordStoreWin::PasswordStoreWin(LoginDatabase* login_database,
172 Profile* profile, 176 Profile* profile,
173 WebDataService* web_data_service) 177 WebDataService* web_data_service)
174 : PasswordStoreDefault(login_database, profile) { 178 : PasswordStoreDefault(login_database, profile) {
175 db_handler_.reset(new DBHandler(web_data_service, this)); 179 db_handler_.reset(new DBHandler(web_data_service, this));
176 } 180 }
177 181
(...skipping 28 matching lines...) Expand all
206 PasswordStore::ForwardLoginsResult(request); 210 PasswordStore::ForwardLoginsResult(request);
207 } 211 }
208 } 212 }
209 213
210 void PasswordStoreWin::GetLoginsImpl(GetLoginsRequest* request, 214 void PasswordStoreWin::GetLoginsImpl(GetLoginsRequest* request,
211 const PasswordForm& form) { 215 const PasswordForm& form) {
212 static_cast<FormGetLoginsRequest*>(request)->SetLoginsRequestForm(form); 216 static_cast<FormGetLoginsRequest*>(request)->SetLoginsRequestForm(form);
213 217
214 PasswordStoreDefault::GetLoginsImpl(request, form); 218 PasswordStoreDefault::GetLoginsImpl(request, form);
215 } 219 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698