Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2378503002: Observe visibility of password inputs, for HTTP-bad phase 1 (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/password_manager/content/browser/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « no previous file | components/password_manager/content/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698