| 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 <wincred.h> | 7 #include <wincred.h> |
| 8 #include <LM.h> | 8 #include <LM.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 "chrome/browser/password_manager/password_manager_util.h" |
| 17 | 17 |
| 18 #include "base/prefs/pref_registry_simple.h" | 18 #include "base/prefs/pref_registry_simple.h" |
| 19 #include "base/prefs/pref_service.h" | 19 #include "base/prefs/pref_service.h" |
| 20 #include "base/safe_numerics.h" | |
| 21 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
| 22 #include "base/time/time.h" | 21 #include "base/time/time.h" |
| 23 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" |
| 24 #include "chrome/browser/password_manager/password_manager.h" | 23 #include "chrome/browser/password_manager/password_manager.h" |
| 25 #include "chrome/common/pref_names.h" | 24 #include "chrome/common/pref_names.h" |
| 26 #include "content/public/browser/render_view_host.h" | 25 #include "content/public/browser/render_view_host.h" |
| 27 #include "content/public/browser/render_widget_host_view.h" | 26 #include "content/public/browser/render_widget_host_view.h" |
| 28 #include "grit/chromium_strings.h" | 27 #include "grit/chromium_strings.h" |
| 29 #include "grit/generated_resources.h" | 28 #include "grit/generated_resources.h" |
| 30 #include "ui/base/l10n/l10n_util.h" | 29 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 } | 235 } |
| 237 } | 236 } |
| 238 SecureZeroMemory(password, sizeof(password)); | 237 SecureZeroMemory(password, sizeof(password)); |
| 239 } | 238 } |
| 240 } while (credErr == NO_ERROR && | 239 } while (credErr == NO_ERROR && |
| 241 (retval == false && tries < kMaxPasswordRetries)); | 240 (retval == false && tries < kMaxPasswordRetries)); |
| 242 return retval; | 241 return retval; |
| 243 } | 242 } |
| 244 | 243 |
| 245 } // namespace password_manager_util | 244 } // namespace password_manager_util |
| OLD | NEW |