| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chrome_password_manager_client.h" | 5 #include "chrome/browser/password_manager/chrome_password_manager_client.h" |
| 6 | 6 |
| 7 #include "base/bind_helpers.h" | 7 #include "base/bind_helpers.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| 11 #include "chrome/browser/password_manager/password_manager_util.h" | 11 #include "chrome/browser/password_manager/password_manager_util.h" |
| 12 #include "chrome/browser/password_manager/password_store_factory.h" | 12 #include "chrome/browser/password_manager/password_store_factory.h" |
| 13 #include "chrome/browser/password_manager/save_password_infobar_delegate.h" | 13 #include "chrome/browser/password_manager/save_password_infobar_delegate.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/sync/profile_sync_service.h" | 15 #include "chrome/browser/sync/profile_sync_service.h" |
| 16 #include "chrome/browser/sync/profile_sync_service_factory.h" | 16 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 17 #include "chrome/browser/ui/autofill/password_generation_popup_controller_impl.h
" | 17 #include "chrome/browser/ui/autofill/password_generation_popup_controller_impl.h
" |
| 18 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" | 18 #include "chrome/browser/ui/passwords/manage_passwords_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 "components/autofill/content/common/autofill_messages.h" | 21 #include "components/autofill/content/common/autofill_messages.h" |
| 22 #include "components/autofill/core/browser/password_generator.h" | 22 #include "components/autofill/core/browser/password_generator.h" |
| 23 #include "components/autofill/core/common/password_form.h" | 23 #include "components/autofill/core/common/password_form.h" |
| 24 #include "components/password_manager/content/browser/password_manager_internals
_service_factory.h" | 24 #include "components/password_manager/content/browser/password_manager_internals
_service_factory.h" |
| 25 #include "components/password_manager/core/browser/log_receiver.h" |
| 25 #include "components/password_manager/core/browser/password_form_manager.h" | 26 #include "components/password_manager/core/browser/password_form_manager.h" |
| 26 #include "components/password_manager/core/browser/password_manager.h" | 27 #include "components/password_manager/core/browser/password_manager.h" |
| 27 #include "components/password_manager/core/browser/password_manager_internals_se
rvice.h" | 28 #include "components/password_manager/core/browser/password_manager_internals_se
rvice.h" |
| 28 #include "components/password_manager/core/browser/password_manager_logger.h" | |
| 29 #include "components/password_manager/core/browser/password_manager_metrics_util
.h" | 29 #include "components/password_manager/core/browser/password_manager_metrics_util
.h" |
| 30 #include "components/password_manager/core/common/password_manager_switches.h" | 30 #include "components/password_manager/core/common/password_manager_switches.h" |
| 31 #include "content/public/browser/render_view_host.h" | 31 #include "content/public/browser/render_view_host.h" |
| 32 #include "content/public/browser/web_contents.h" | 32 #include "content/public/browser/web_contents.h" |
| 33 | 33 |
| 34 #if defined(OS_ANDROID) | 34 #if defined(OS_ANDROID) |
| 35 #include "chrome/browser/android/password_authentication_manager.h" | 35 #include "chrome/browser/android/password_authentication_manager.h" |
| 36 #endif // OS_ANDROID | 36 #endif // OS_ANDROID |
| 37 | 37 |
| 38 using password_manager::PasswordManagerInternalsService; | 38 using password_manager::PasswordManagerInternalsService; |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 web_contents(), | 327 web_contents(), |
| 328 web_contents()->GetNativeView()); | 328 web_contents()->GetNativeView()); |
| 329 popup_controller_->Show(false /* display_password */); | 329 popup_controller_->Show(false /* display_password */); |
| 330 #endif // defined(USE_AURA) || defined(OS_MACOSX) | 330 #endif // defined(USE_AURA) || defined(OS_MACOSX) |
| 331 } | 331 } |
| 332 | 332 |
| 333 void ChromePasswordManagerClient::CommitFillPasswordForm( | 333 void ChromePasswordManagerClient::CommitFillPasswordForm( |
| 334 autofill::PasswordFormFillData* data) { | 334 autofill::PasswordFormFillData* data) { |
| 335 driver_.FillPasswordForm(*data); | 335 driver_.FillPasswordForm(*data); |
| 336 } | 336 } |
| OLD | NEW |