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

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

Issue 380023002: Move Password specific webdata logic into passwords component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | 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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "chrome/browser/webdata/password_web_data_service_win.h"
15 #include "components/os_crypt/ie7_password_win.h" 14 #include "components/os_crypt/ie7_password_win.h"
16 #include "components/password_manager/core/browser/password_manager.h" 15 #include "components/password_manager/core/browser/password_manager.h"
16 #include "components/password_manager/core/browser/webdata/password_web_data_ser vice_win.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 18
19 using autofill::PasswordForm; 19 using autofill::PasswordForm;
20 using content::BrowserThread; 20 using content::BrowserThread;
21 using password_manager::PasswordStoreDefault; 21 using password_manager::PasswordStoreDefault;
22 22
23 // Handles requests to PasswordWebDataService. 23 // Handles requests to PasswordWebDataService.
24 class PasswordStoreWin::DBHandler : public WebDataServiceConsumer { 24 class PasswordStoreWin::DBHandler : public WebDataServiceConsumer {
25 public: 25 public:
26 DBHandler(PasswordWebDataService* web_data_service, 26 DBHandler(PasswordWebDataService* web_data_service,
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 void PasswordStoreWin::GetLoginsImpl( 208 void PasswordStoreWin::GetLoginsImpl(
209 const PasswordForm& form, 209 const PasswordForm& form,
210 AuthorizationPromptPolicy prompt_policy, 210 AuthorizationPromptPolicy prompt_policy,
211 const ConsumerCallbackRunner& callback_runner) { 211 const ConsumerCallbackRunner& callback_runner) {
212 ConsumerCallbackRunner get_ie7_login = 212 ConsumerCallbackRunner get_ie7_login =
213 base::Bind(&PasswordStoreWin::GetIE7LoginIfNecessary, 213 base::Bind(&PasswordStoreWin::GetIE7LoginIfNecessary,
214 this, form, callback_runner); 214 this, form, callback_runner);
215 PasswordStoreDefault::GetLoginsImpl(form, prompt_policy, get_ie7_login); 215 PasswordStoreDefault::GetLoginsImpl(form, prompt_policy, get_ie7_login);
216 } 216 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698