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/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 2939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2950 | 2950 |
2951 registry->AddInterface( | 2951 registry->AddInterface( |
2952 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver, | 2952 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver, |
2953 render_frame_host)); | 2953 render_frame_host)); |
2954 | 2954 |
2955 registry->AddInterface( | 2955 registry->AddInterface( |
2956 base::Bind(&password_manager::ContentPasswordManagerDriverFactory:: | 2956 base::Bind(&password_manager::ContentPasswordManagerDriverFactory:: |
2957 BindPasswordManagerDriver, | 2957 BindPasswordManagerDriver, |
2958 render_frame_host)); | 2958 render_frame_host)); |
2959 | 2959 |
| 2960 registry->AddInterface( |
| 2961 base::Bind(&password_manager::ContentPasswordManagerDriverFactory:: |
| 2962 BindSensitiveInputVisibilityService, |
| 2963 render_frame_host)); |
| 2964 |
2960 #if BUILDFLAG(ANDROID_JAVA_UI) | 2965 #if BUILDFLAG(ANDROID_JAVA_UI) |
2961 content::WebContents* web_contents = | 2966 content::WebContents* web_contents = |
2962 content::WebContents::FromRenderFrameHost(render_frame_host); | 2967 content::WebContents::FromRenderFrameHost(render_frame_host); |
2963 if (web_contents) { | 2968 if (web_contents) { |
2964 registry->AddInterface( | 2969 registry->AddInterface( |
2965 web_contents->GetJavaInterfaces() | 2970 web_contents->GetJavaInterfaces() |
2966 ->CreateInterfaceFactory<blink::mojom::PaymentRequest>()); | 2971 ->CreateInterfaceFactory<blink::mojom::PaymentRequest>()); |
2967 registry->AddInterface( | 2972 registry->AddInterface( |
2968 base::Bind(&ForwardShareServiceRequest, | 2973 base::Bind(&ForwardShareServiceRequest, |
2969 web_contents->GetJavaInterfaces()->GetWeakPtr())); | 2974 web_contents->GetJavaInterfaces()->GetWeakPtr())); |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3236 if (channel <= kMaxDisableEncryptionChannel) { | 3241 if (channel <= kMaxDisableEncryptionChannel) { |
3237 static const char* const kWebRtcDevSwitchNames[] = { | 3242 static const char* const kWebRtcDevSwitchNames[] = { |
3238 switches::kDisableWebRtcEncryption, | 3243 switches::kDisableWebRtcEncryption, |
3239 }; | 3244 }; |
3240 to_command_line->CopySwitchesFrom(from_command_line, | 3245 to_command_line->CopySwitchesFrom(from_command_line, |
3241 kWebRtcDevSwitchNames, | 3246 kWebRtcDevSwitchNames, |
3242 arraysize(kWebRtcDevSwitchNames)); | 3247 arraysize(kWebRtcDevSwitchNames)); |
3243 } | 3248 } |
3244 } | 3249 } |
3245 #endif // defined(ENABLE_WEBRTC) | 3250 #endif // defined(ENABLE_WEBRTC) |
OLD | NEW |