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: Created 8 years, 8 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 request->ForwardResult(request->handle(), request->value); 168 // Note that we call the parent implementation, not ours.
169 PasswordStore::ForwardLoginsResult(request);
169 } 170 }
170 171
171 PasswordStoreWin::PasswordStoreWin(LoginDatabase* login_database, 172 PasswordStoreWin::PasswordStoreWin(LoginDatabase* login_database,
172 Profile* profile, 173 Profile* profile,
173 WebDataService* web_data_service) 174 WebDataService* web_data_service)
174 : PasswordStoreDefault(login_database, profile) { 175 : PasswordStoreDefault(login_database, profile) {
175 db_handler_.reset(new DBHandler(web_data_service, this)); 176 db_handler_.reset(new DBHandler(web_data_service, this));
176 } 177 }
177 178
178 PasswordStoreWin::~PasswordStoreWin() { 179 PasswordStoreWin::~PasswordStoreWin() {
(...skipping 27 matching lines...) Expand all
206 PasswordStore::ForwardLoginsResult(request); 207 PasswordStore::ForwardLoginsResult(request);
207 } 208 }
208 } 209 }
209 210
210 void PasswordStoreWin::GetLoginsImpl(GetLoginsRequest* request, 211 void PasswordStoreWin::GetLoginsImpl(GetLoginsRequest* request,
211 const PasswordForm& form) { 212 const PasswordForm& form) {
212 static_cast<FormGetLoginsRequest*>(request)->SetLoginsRequestForm(form); 213 static_cast<FormGetLoginsRequest*>(request)->SetLoginsRequestForm(form);
213 214
214 PasswordStoreDefault::GetLoginsImpl(request, form); 215 PasswordStoreDefault::GetLoginsImpl(request, form);
215 } 216 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698