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

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

Issue 2216463002: [Autofill] Migrate ContentPasswordManagerDriver<-->Password{Autofill,Generation}Agent IPCs to mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nit from Vaclav Created 4 years, 4 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 | chrome/browser/password_manager/chrome_password_manager_client_unittest.cc » ('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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 #include "components/content_settings/core/browser/host_content_settings_map.h" 117 #include "components/content_settings/core/browser/host_content_settings_map.h"
118 #include "components/content_settings/core/common/content_settings.h" 118 #include "components/content_settings/core/common/content_settings.h"
119 #include "components/content_settings/core/common/content_settings_types.h" 119 #include "components/content_settings/core/common/content_settings_types.h"
120 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_m essage_filter.h" 120 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_m essage_filter.h"
121 #include "components/dom_distiller/core/dom_distiller_switches.h" 121 #include "components/dom_distiller/core/dom_distiller_switches.h"
122 #include "components/dom_distiller/core/url_constants.h" 122 #include "components/dom_distiller/core/url_constants.h"
123 #include "components/error_page/common/error_page_switches.h" 123 #include "components/error_page/common/error_page_switches.h"
124 #include "components/google/core/browser/google_util.h" 124 #include "components/google/core/browser/google_util.h"
125 #include "components/metrics/client_info.h" 125 #include "components/metrics/client_info.h"
126 #include "components/net_log/chrome_net_log.h" 126 #include "components/net_log/chrome_net_log.h"
127 #include "components/password_manager/content/browser/content_password_manager_d river_factory.h"
127 #include "components/pref_registry/pref_registry_syncable.h" 128 #include "components/pref_registry/pref_registry_syncable.h"
128 #include "components/prefs/pref_service.h" 129 #include "components/prefs/pref_service.h"
129 #include "components/prefs/scoped_user_pref_update.h" 130 #include "components/prefs/scoped_user_pref_update.h"
130 #include "components/rappor/rappor_utils.h" 131 #include "components/rappor/rappor_utils.h"
131 #include "components/security_interstitials/core/ssl_error_ui.h" 132 #include "components/security_interstitials/core/ssl_error_ui.h"
132 #include "components/signin/core/common/profile_management_switches.h" 133 #include "components/signin/core/common/profile_management_switches.h"
133 #include "components/spellcheck/common/spellcheck_switches.h" 134 #include "components/spellcheck/common/spellcheck_switches.h"
134 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h" 135 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h"
135 #include "components/subresource_filter/content/browser/content_subresource_filt er_driver_factory.h" 136 #include "components/subresource_filter/content/browser/content_subresource_filt er_driver_factory.h"
136 #include "components/subresource_filter/content/browser/subresource_filter_navig ation_throttle.h" 137 #include "components/subresource_filter/content/browser/subresource_filter_navig ation_throttle.h"
(...skipping 2688 matching lines...) Expand 10 before | Expand all | Expand 10 after
2825 if (!render_frame_host->GetParent()) { 2826 if (!render_frame_host->GetParent()) {
2826 registry->AddInterface( 2827 registry->AddInterface(
2827 base::Bind(&ChromePasswordManagerClient::BindCredentialManager, 2828 base::Bind(&ChromePasswordManagerClient::BindCredentialManager,
2828 render_frame_host)); 2829 render_frame_host));
2829 } 2830 }
2830 2831
2831 registry->AddInterface( 2832 registry->AddInterface(
2832 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver, 2833 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver,
2833 render_frame_host)); 2834 render_frame_host));
2834 2835
2836 registry->AddInterface(
2837 base::Bind(&password_manager::ContentPasswordManagerDriverFactory::
2838 BindPasswordManagerDriver,
2839 render_frame_host));
2840
2835 #if BUILDFLAG(ANDROID_JAVA_UI) 2841 #if BUILDFLAG(ANDROID_JAVA_UI)
2836 ChromeInterfaceRegistrarAndroid::ExposeInterfacesToFrame( 2842 ChromeInterfaceRegistrarAndroid::ExposeInterfacesToFrame(
2837 registry, render_frame_host); 2843 registry, render_frame_host);
2838 #endif 2844 #endif
2839 } 2845 }
2840 2846
2841 void ChromeContentBrowserClient::RegisterInProcessMojoApplications( 2847 void ChromeContentBrowserClient::RegisterInProcessMojoApplications(
2842 StaticMojoApplicationMap* apps) { 2848 StaticMojoApplicationMap* apps) {
2843 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) 2849 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
2844 content::MojoApplicationInfo app_info; 2850 content::MojoApplicationInfo app_info;
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
3062 if (channel <= kMaxDisableEncryptionChannel) { 3068 if (channel <= kMaxDisableEncryptionChannel) {
3063 static const char* const kWebRtcDevSwitchNames[] = { 3069 static const char* const kWebRtcDevSwitchNames[] = {
3064 switches::kDisableWebRtcEncryption, 3070 switches::kDisableWebRtcEncryption,
3065 }; 3071 };
3066 to_command_line->CopySwitchesFrom(from_command_line, 3072 to_command_line->CopySwitchesFrom(from_command_line,
3067 kWebRtcDevSwitchNames, 3073 kWebRtcDevSwitchNames,
3068 arraysize(kWebRtcDevSwitchNames)); 3074 arraysize(kWebRtcDevSwitchNames));
3069 } 3075 }
3070 } 3076 }
3071 #endif // defined(ENABLE_WEBRTC) 3077 #endif // defined(ENABLE_WEBRTC)
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/password_manager/chrome_password_manager_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698