| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // windows.h must be first otherwise Win8 SDK breaks. | 5 // windows.h must be first otherwise Win8 SDK breaks. |
| 6 #include <windows.h> | 6 #include <windows.h> |
| 7 #include <LM.h> | 7 #include <LM.h> |
| 8 #include <wincred.h> | 8 #include <wincred.h> |
| 9 | 9 |
| 10 // SECURITY_WIN32 must be defined in order to get | 10 // SECURITY_WIN32 must be defined in order to get |
| 11 // EXTENDED_NAME_FORMAT enumeration. | 11 // EXTENDED_NAME_FORMAT enumeration. |
| 12 #define SECURITY_WIN32 1 | 12 #define SECURITY_WIN32 1 |
| 13 #include <security.h> | 13 #include <security.h> |
| 14 #undef SECURITY_WIN32 | 14 #undef SECURITY_WIN32 |
| 15 | 15 |
| 16 #include "chrome/browser/password_manager/password_manager_util.h" | 16 #include "components/password_manager/core/browser/password_manager_util.h" |
| 17 | 17 |
| 18 #include "base/bind.h" | 18 #include "base/bind.h" |
| 19 #include "base/prefs/pref_service.h" | 19 #include "base/prefs/pref_service.h" |
| 20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
| 21 #include "base/threading/worker_pool.h" | 21 #include "base/threading/worker_pool.h" |
| 22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
| 23 #include "base/win/windows_version.h" | 23 #include "base/win/windows_version.h" |
| 24 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
| 25 #include "chrome/grit/chromium_strings.h" | 25 #include "chrome/grit/chromium_strings.h" |
| 26 #include "components/password_manager/core/browser/password_manager.h" | 26 #include "components/password_manager/core/browser/password_manager.h" |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 } | 291 } |
| 292 } | 292 } |
| 293 SecureZeroMemory(password, sizeof(password)); | 293 SecureZeroMemory(password, sizeof(password)); |
| 294 } | 294 } |
| 295 } while (credErr == NO_ERROR && | 295 } while (credErr == NO_ERROR && |
| 296 (retval == false && tries < kMaxPasswordRetries)); | 296 (retval == false && tries < kMaxPasswordRetries)); |
| 297 return retval; | 297 return retval; |
| 298 } | 298 } |
| 299 | 299 |
| 300 } // namespace password_manager_util | 300 } // namespace password_manager_util |
| OLD | NEW |