| 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/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
| 21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
| 22 #include "base/win/windows_version.h" | 22 #include "base/win/windows_version.h" |
| 23 #include "chrome/browser/browser_process.h" | 23 #include "chrome/browser/browser_process.h" |
| 24 #include "components/password_manager/core/browser/password_manager.h" | 24 #include "components/password_manager/core/browser/password_manager.h" |
| 25 #include "components/password_manager/core/common/password_manager_pref_names.h" | 25 #include "components/password_manager/core/common/password_manager_pref_names.h" |
| 26 #include "content/public/browser/render_view_host.h" | 26 #include "content/public/browser/render_view_host.h" |
| 27 #include "content/public/browser/render_widget_host_view.h" | 27 #include "content/public/browser/render_widget_host_view.h" |
| 28 #include "grit/chromium_strings.h" | 28 #include "grit/chromium_strings.h" |
| 29 #include "grit/generated_resources.h" | |
| 30 #include "ui/base/l10n/l10n_util.h" | 29 #include "ui/base/l10n/l10n_util.h" |
| 31 | 30 |
| 32 #if defined(USE_AURA) | 31 #if defined(USE_AURA) |
| 33 #include "ui/aura/window.h" | 32 #include "ui/aura/window.h" |
| 34 #include "ui/aura/window_tree_host.h" | 33 #include "ui/aura/window_tree_host.h" |
| 35 #endif | 34 #endif |
| 36 | 35 |
| 37 // static | 36 // static |
| 38 void password_manager::PasswordManager::RegisterLocalPrefs( | 37 void password_manager::PasswordManager::RegisterLocalPrefs( |
| 39 PrefRegistrySimple* registry) { | 38 PrefRegistrySimple* registry) { |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 } | 245 } |
| 247 } | 246 } |
| 248 SecureZeroMemory(password, sizeof(password)); | 247 SecureZeroMemory(password, sizeof(password)); |
| 249 } | 248 } |
| 250 } while (credErr == NO_ERROR && | 249 } while (credErr == NO_ERROR && |
| 251 (retval == false && tries < kMaxPasswordRetries)); | 250 (retval == false && tries < kMaxPasswordRetries)); |
| 252 return retval; | 251 return retval; |
| 253 } | 252 } |
| 254 | 253 |
| 255 } // namespace password_manager_util | 254 } // namespace password_manager_util |
| OLD | NEW |