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/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/threading/platform_thread.h" | 13 #include "base/threading/platform_thread.h" |
14 #include "chrome/browser/password_manager/password_form_manager.h" | 14 #include "chrome/browser/password_manager/password_form_manager.h" |
15 #include "chrome/browser/password_manager/password_manager_delegate.h" | 15 #include "chrome/browser/password_manager/password_manager_delegate.h" |
16 #include "chrome/browser/password_manager/password_manager_metrics_util.h" | 16 #include "chrome/browser/password_manager/password_manager_metrics_util.h" |
17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller.h" | 18 #include "chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller.h" |
19 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
20 #include "chrome/common/chrome_version_info.h" | 20 #include "chrome/common/chrome_version_info.h" |
21 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
22 #include "components/autofill/core/common/autofill_messages.h" | 22 #include "components/autofill/content/common/autofill_messages.h" |
23 #include "components/user_prefs/pref_registry_syncable.h" | 23 #include "components/user_prefs/pref_registry_syncable.h" |
24 #include "content/public/browser/navigation_details.h" | 24 #include "content/public/browser/navigation_details.h" |
25 #include "content/public/browser/user_metrics.h" | 25 #include "content/public/browser/user_metrics.h" |
26 #include "content/public/browser/web_contents.h" | 26 #include "content/public/browser/web_contents.h" |
27 #include "content/public/common/frame_navigate_params.h" | 27 #include "content/public/common/frame_navigate_params.h" |
28 #include "grit/generated_resources.h" | 28 #include "grit/generated_resources.h" |
29 | 29 |
30 using autofill::PasswordForm; | 30 using autofill::PasswordForm; |
31 using autofill::PasswordFormMap; | 31 using autofill::PasswordFormMap; |
32 using content::UserMetricsAction; | 32 using content::UserMetricsAction; |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 } | 424 } |
425 | 425 |
426 ManagePasswordsBubbleUIController* manage_passwords_bubble_ui_controller = | 426 ManagePasswordsBubbleUIController* manage_passwords_bubble_ui_controller = |
427 ManagePasswordsBubbleUIController::FromWebContents(web_contents()); | 427 ManagePasswordsBubbleUIController::FromWebContents(web_contents()); |
428 if (manage_passwords_bubble_ui_controller && | 428 if (manage_passwords_bubble_ui_controller && |
429 CommandLine::ForCurrentProcess()->HasSwitch( | 429 CommandLine::ForCurrentProcess()->HasSwitch( |
430 switches::kEnableSavePasswordBubble)) { | 430 switches::kEnableSavePasswordBubble)) { |
431 manage_passwords_bubble_ui_controller->OnPasswordAutofilled(best_matches); | 431 manage_passwords_bubble_ui_controller->OnPasswordAutofilled(best_matches); |
432 } | 432 } |
433 } | 433 } |
OLD | NEW |