OLD | NEW |
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_manager.h" | 5 #include "chrome/browser/password_manager/password_manager.h" |
6 | 6 |
7 #include "base/metrics/field_trial.h" | 7 #include "base/metrics/field_trial.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "base/threading/platform_thread.h" | 12 #include "base/threading/platform_thread.h" |
13 #include "chrome/browser/password_manager/password_form_manager.h" | 13 #include "chrome/browser/password_manager/password_form_manager.h" |
14 #include "chrome/browser/password_manager/password_manager_delegate.h" | 14 #include "chrome/browser/password_manager/password_manager_delegate.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/common/chrome_version_info.h" | 16 #include "chrome/common/chrome_version_info.h" |
17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
18 #include "components/autofill/common/autofill_messages.h" | 18 #include "components/autofill/core/common/autofill_messages.h" |
19 #include "components/user_prefs/pref_registry_syncable.h" | 19 #include "components/user_prefs/pref_registry_syncable.h" |
20 #include "content/public/browser/navigation_details.h" | 20 #include "content/public/browser/navigation_details.h" |
21 #include "content/public/browser/user_metrics.h" | 21 #include "content/public/browser/user_metrics.h" |
22 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
23 #include "content/public/common/frame_navigate_params.h" | 23 #include "content/public/common/frame_navigate_params.h" |
24 #include "grit/generated_resources.h" | 24 #include "grit/generated_resources.h" |
25 | 25 |
26 using content::UserMetricsAction; | 26 using content::UserMetricsAction; |
27 using content::WebContents; | 27 using content::WebContents; |
28 using content::PasswordForm; | 28 using content::PasswordForm; |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 return; | 375 return; |
376 } | 376 } |
377 default: | 377 default: |
378 FOR_EACH_OBSERVER( | 378 FOR_EACH_OBSERVER( |
379 LoginModelObserver, | 379 LoginModelObserver, |
380 observers_, | 380 observers_, |
381 OnAutofillDataAvailable(preferred_match.username_value, | 381 OnAutofillDataAvailable(preferred_match.username_value, |
382 preferred_match.password_value)); | 382 preferred_match.password_value)); |
383 } | 383 } |
384 } | 384 } |
OLD | NEW |