| 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 <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
| 14 #include "base/metrics/field_trial.h" | 14 #include "base/metrics/field_trial.h" |
| 15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram_macros.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 17 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
| 18 #include "chrome/browser/password_manager/password_store_factory.h" | 18 #include "chrome/browser/password_manager/password_store_factory.h" |
| 19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
| 20 #include "chrome/browser/signin/signin_manager_factory.h" | 20 #include "chrome/browser/signin/signin_manager_factory.h" |
| 21 #include "chrome/browser/sync/profile_sync_service_factory.h" | 21 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 22 #include "chrome/browser/ui/autofill/password_generation_popup_controller_impl.h
" | 22 #include "chrome/browser/ui/autofill/password_generation_popup_controller_impl.h
" |
| 23 #include "chrome/browser/ui/passwords/passwords_client_ui_delegate.h" | 23 #include "chrome/browser/ui/passwords/passwords_client_ui_delegate.h" |
| 24 #include "chrome/common/channel_info.h" | 24 #include "chrome/common/channel_info.h" |
| 25 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 password_manager::mojom::CredentialManagerRequest request) { | 609 password_manager::mojom::CredentialManagerRequest request) { |
| 610 content::WebContents* web_contents = | 610 content::WebContents* web_contents = |
| 611 content::WebContents::FromRenderFrameHost(render_frame_host); | 611 content::WebContents::FromRenderFrameHost(render_frame_host); |
| 612 DCHECK(web_contents); | 612 DCHECK(web_contents); |
| 613 | 613 |
| 614 ChromePasswordManagerClient* instance = | 614 ChromePasswordManagerClient* instance = |
| 615 ChromePasswordManagerClient::FromWebContents(web_contents); | 615 ChromePasswordManagerClient::FromWebContents(web_contents); |
| 616 DCHECK(instance); | 616 DCHECK(instance); |
| 617 instance->credential_manager_impl_.BindRequest(std::move(request)); | 617 instance->credential_manager_impl_.BindRequest(std::move(request)); |
| 618 } | 618 } |
| OLD | NEW |