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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <wincred.h> | 10 #include <wincred.h> |
11 | 11 |
12 // SECURITY_WIN32 must be defined in order to get | 12 // SECURITY_WIN32 must be defined in order to get |
13 // EXTENDED_NAME_FORMAT enumeration. | 13 // EXTENDED_NAME_FORMAT enumeration. |
14 #define SECURITY_WIN32 1 | 14 #define SECURITY_WIN32 1 |
15 #include <security.h> | 15 #include <security.h> |
16 #undef SECURITY_WIN32 | 16 #undef SECURITY_WIN32 |
17 | 17 |
18 #include "chrome/browser/password_manager/password_manager_util_win.h" | 18 #include "chrome/browser/password_manager/password_manager_util_win.h" |
19 | 19 |
20 #include "base/bind.h" | 20 #include "base/bind.h" |
21 #include "base/bind_helpers.h" | 21 #include "base/bind_helpers.h" |
22 #include "base/memory/scoped_ptr.h" | 22 #include "base/memory/scoped_ptr.h" |
23 #include "base/metrics/histogram_macros.h" | 23 #include "base/metrics/histogram_macros.h" |
24 #include "base/prefs/pref_service.h" | |
25 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
26 #include "base/threading/worker_pool.h" | 25 #include "base/threading/worker_pool.h" |
27 #include "base/time/time.h" | 26 #include "base/time/time.h" |
28 #include "base/win/windows_version.h" | 27 #include "base/win/windows_version.h" |
29 #include "chrome/browser/browser_process.h" | 28 #include "chrome/browser/browser_process.h" |
30 #include "chrome/grit/chromium_strings.h" | 29 #include "chrome/grit/chromium_strings.h" |
31 #include "components/password_manager/core/browser/password_manager.h" | 30 #include "components/password_manager/core/browser/password_manager.h" |
32 #include "components/password_manager/core/common/password_manager_pref_names.h" | 31 #include "components/password_manager/core/common/password_manager_pref_names.h" |
| 32 #include "components/prefs/pref_service.h" |
33 #include "content/public/browser/browser_thread.h" | 33 #include "content/public/browser/browser_thread.h" |
34 #include "content/public/browser/render_view_host.h" | 34 #include "content/public/browser/render_view_host.h" |
35 #include "content/public/browser/render_widget_host_view.h" | 35 #include "content/public/browser/render_widget_host_view.h" |
36 #include "ui/aura/window.h" | 36 #include "ui/aura/window.h" |
37 #include "ui/aura/window_tree_host.h" | 37 #include "ui/aura/window_tree_host.h" |
38 #include "ui/base/l10n/l10n_util.h" | 38 #include "ui/base/l10n/l10n_util.h" |
39 | 39 |
40 namespace password_manager_util_win { | 40 namespace password_manager_util_win { |
41 namespace { | 41 namespace { |
42 | 42 |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 } | 319 } |
320 } | 320 } |
321 SecureZeroMemory(password, sizeof(password)); | 321 SecureZeroMemory(password, sizeof(password)); |
322 } | 322 } |
323 } while (credErr == NO_ERROR && | 323 } while (credErr == NO_ERROR && |
324 (retval == false && tries < kMaxPasswordRetries)); | 324 (retval == false && tries < kMaxPasswordRetries)); |
325 return retval; | 325 return retval; |
326 } | 326 } |
327 | 327 |
328 } // namespace password_manager_util_win | 328 } // namespace password_manager_util_win |
OLD | NEW |