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

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: fix superclass createLayoutObject call 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
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 #include "components/content_settings/core/common/content_settings.h" 122 #include "components/content_settings/core/common/content_settings.h"
123 #include "components/content_settings/core/common/content_settings_types.h" 123 #include "components/content_settings/core/common/content_settings_types.h"
124 #include "components/dom_distiller/core/dom_distiller_switches.h" 124 #include "components/dom_distiller/core/dom_distiller_switches.h"
125 #include "components/dom_distiller/core/url_constants.h" 125 #include "components/dom_distiller/core/url_constants.h"
126 #include "components/error_page/common/error_page_switches.h" 126 #include "components/error_page/common/error_page_switches.h"
127 #include "components/google/core/browser/google_util.h" 127 #include "components/google/core/browser/google_util.h"
128 #include "components/metrics/call_stack_profile_collector.h" 128 #include "components/metrics/call_stack_profile_collector.h"
129 #include "components/metrics/client_info.h" 129 #include "components/metrics/client_info.h"
130 #include "components/net_log/chrome_net_log.h" 130 #include "components/net_log/chrome_net_log.h"
131 #include "components/password_manager/content/browser/content_password_manager_d river_factory.h" 131 #include "components/password_manager/content/browser/content_password_manager_d river_factory.h"
132 #include "components/password_manager/content/browser/password_visibility_servic e_factory.h"
132 #include "components/pref_registry/pref_registry_syncable.h" 133 #include "components/pref_registry/pref_registry_syncable.h"
133 #include "components/prefs/pref_service.h" 134 #include "components/prefs/pref_service.h"
134 #include "components/prefs/scoped_user_pref_update.h" 135 #include "components/prefs/scoped_user_pref_update.h"
135 #include "components/rappor/rappor_utils.h" 136 #include "components/rappor/rappor_utils.h"
136 #include "components/security_interstitials/core/ssl_error_ui.h" 137 #include "components/security_interstitials/core/ssl_error_ui.h"
137 #include "components/signin/core/common/profile_management_switches.h" 138 #include "components/signin/core/common/profile_management_switches.h"
138 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h" 139 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h"
139 #include "components/subresource_filter/content/browser/content_subresource_filt er_driver_factory.h" 140 #include "components/subresource_filter/content/browser/content_subresource_filt er_driver_factory.h"
140 #include "components/subresource_filter/content/browser/subresource_filter_navig ation_throttle.h" 141 #include "components/subresource_filter/content/browser/subresource_filter_navig ation_throttle.h"
141 #include "components/translate/core/common/translate_switches.h" 142 #include "components/translate/core/common/translate_switches.h"
(...skipping 2838 matching lines...) Expand 10 before | Expand all | Expand 10 after
2980 2981
2981 registry->AddInterface( 2982 registry->AddInterface(
2982 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver, 2983 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver,
2983 render_frame_host)); 2984 render_frame_host));
2984 2985
2985 registry->AddInterface( 2986 registry->AddInterface(
2986 base::Bind(&password_manager::ContentPasswordManagerDriverFactory:: 2987 base::Bind(&password_manager::ContentPasswordManagerDriverFactory::
2987 BindPasswordManagerDriver, 2988 BindPasswordManagerDriver,
2988 render_frame_host)); 2989 render_frame_host));
2989 2990
2991 registry->AddInterface(
2992 base::Bind(&password_manager::PasswordVisibilityServiceFactory::
2993 BindSensitiveInputVisibilityService,
2994 render_frame_host));
2995
2990 #if BUILDFLAG(ANDROID_JAVA_UI) 2996 #if BUILDFLAG(ANDROID_JAVA_UI)
2991 content::WebContents* web_contents = 2997 content::WebContents* web_contents =
2992 content::WebContents::FromRenderFrameHost(render_frame_host); 2998 content::WebContents::FromRenderFrameHost(render_frame_host);
2993 if (web_contents) { 2999 if (web_contents) {
2994 registry->AddInterface( 3000 registry->AddInterface(
2995 web_contents->GetJavaInterfaces() 3001 web_contents->GetJavaInterfaces()
2996 ->CreateInterfaceFactory<blink::mojom::PaymentRequest>()); 3002 ->CreateInterfaceFactory<blink::mojom::PaymentRequest>());
2997 registry->AddInterface( 3003 registry->AddInterface(
2998 web_contents->GetJavaInterfaces() 3004 web_contents->GetJavaInterfaces()
2999 ->CreateInterfaceFactory<blink::mojom::ShareService>()); 3005 ->CreateInterfaceFactory<blink::mojom::ShareService>());
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
3264 if (channel <= kMaxDisableEncryptionChannel) { 3270 if (channel <= kMaxDisableEncryptionChannel) {
3265 static const char* const kWebRtcDevSwitchNames[] = { 3271 static const char* const kWebRtcDevSwitchNames[] = {
3266 switches::kDisableWebRtcEncryption, 3272 switches::kDisableWebRtcEncryption,
3267 }; 3273 };
3268 to_command_line->CopySwitchesFrom(from_command_line, 3274 to_command_line->CopySwitchesFrom(from_command_line,
3269 kWebRtcDevSwitchNames, 3275 kWebRtcDevSwitchNames,
3270 arraysize(kWebRtcDevSwitchNames)); 3276 arraysize(kWebRtcDevSwitchNames));
3271 } 3277 }
3272 } 3278 }
3273 #endif // defined(ENABLE_WEBRTC) 3279 #endif // defined(ENABLE_WEBRTC)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698