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

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

Issue 2072613003: Convert GetSearchProviderInstallState to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move InstallState enum into mojom Created 4 years, 6 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h" 65 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h"
66 #include "chrome/browser/profiles/profile.h" 66 #include "chrome/browser/profiles/profile.h"
67 #include "chrome/browser/profiles/profile_io_data.h" 67 #include "chrome/browser/profiles/profile_io_data.h"
68 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" 68 #include "chrome/browser/renderer_host/chrome_render_message_filter.h"
69 #include "chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory .h" 69 #include "chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory .h"
70 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 70 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
71 #include "chrome/browser/safe_browsing/ui_manager.h" 71 #include "chrome/browser/safe_browsing/ui_manager.h"
72 #include "chrome/browser/search/instant_service.h" 72 #include "chrome/browser/search/instant_service.h"
73 #include "chrome/browser/search/instant_service_factory.h" 73 #include "chrome/browser/search/instant_service_factory.h"
74 #include "chrome/browser/search/search.h" 74 #include "chrome/browser/search/search.h"
75 #include "chrome/browser/search_engines/search_provider_install_state_message_fi lter.h" 75 #include "chrome/browser/search_engines/search_provider_install_state_impl.h"
76 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" 76 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h"
77 #include "chrome/browser/speech/tts_controller.h" 77 #include "chrome/browser/speech/tts_controller.h"
78 #include "chrome/browser/speech/tts_message_filter.h" 78 #include "chrome/browser/speech/tts_message_filter.h"
79 #include "chrome/browser/ssl/ssl_add_certificate.h" 79 #include "chrome/browser/ssl/ssl_add_certificate.h"
80 #include "chrome/browser/ssl/ssl_blocking_page.h" 80 #include "chrome/browser/ssl/ssl_blocking_page.h"
81 #include "chrome/browser/ssl/ssl_cert_reporter.h" 81 #include "chrome/browser/ssl/ssl_cert_reporter.h"
82 #include "chrome/browser/ssl/ssl_client_certificate_selector.h" 82 #include "chrome/browser/ssl/ssl_client_certificate_selector.h"
83 #include "chrome/browser/ssl/ssl_error_handler.h" 83 #include "chrome/browser/ssl/ssl_error_handler.h"
84 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" 84 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h"
85 #include "chrome/browser/tab_contents/tab_util.h" 85 #include "chrome/browser/tab_contents/tab_util.h"
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 net::URLRequestContextGetter* context = 941 net::URLRequestContextGetter* context =
942 host->GetStoragePartition()->GetURLRequestContext(); 942 host->GetStoragePartition()->GetURLRequestContext();
943 943
944 host->AddFilter(new ChromeRenderMessageFilter(id, profile)); 944 host->AddFilter(new ChromeRenderMessageFilter(id, profile));
945 #if defined(ENABLE_EXTENSIONS) 945 #if defined(ENABLE_EXTENSIONS)
946 host->AddFilter(new cast::CastTransportHostFilter); 946 host->AddFilter(new cast::CastTransportHostFilter);
947 #endif 947 #endif
948 #if defined(ENABLE_PRINTING) 948 #if defined(ENABLE_PRINTING)
949 host->AddFilter(new printing::PrintingMessageFilter(id, profile)); 949 host->AddFilter(new printing::PrintingMessageFilter(id, profile));
950 #endif 950 #endif
951 host->AddFilter(new SearchProviderInstallStateMessageFilter(id, profile)); 951 SearchProviderInstallStateImpl::InstallService(host);
952 #if defined(ENABLE_SPELLCHECK) 952 #if defined(ENABLE_SPELLCHECK)
953 host->AddFilter(new SpellCheckMessageFilter(id)); 953 host->AddFilter(new SpellCheckMessageFilter(id));
954 #endif 954 #endif
955 #if defined(USE_BROWSER_SPELLCHECKER) 955 #if defined(USE_BROWSER_SPELLCHECKER)
956 host->AddFilter(new SpellCheckMessageFilterPlatform(id)); 956 host->AddFilter(new SpellCheckMessageFilterPlatform(id));
957 #endif 957 #endif
958 host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context)); 958 host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context));
959 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile)); 959 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile));
960 host->AddFilter(new TtsMessageFilter(host->GetBrowserContext())); 960 host->AddFilter(new TtsMessageFilter(host->GetBrowserContext()));
961 #if defined(ENABLE_WEBRTC) 961 #if defined(ENABLE_WEBRTC)
(...skipping 1995 matching lines...) Expand 10 before | Expand all | Expand 10 after
2957 if (channel <= kMaxDisableEncryptionChannel) { 2957 if (channel <= kMaxDisableEncryptionChannel) {
2958 static const char* const kWebRtcDevSwitchNames[] = { 2958 static const char* const kWebRtcDevSwitchNames[] = {
2959 switches::kDisableWebRtcEncryption, 2959 switches::kDisableWebRtcEncryption,
2960 }; 2960 };
2961 to_command_line->CopySwitchesFrom(from_command_line, 2961 to_command_line->CopySwitchesFrom(from_command_line,
2962 kWebRtcDevSwitchNames, 2962 kWebRtcDevSwitchNames,
2963 arraysize(kWebRtcDevSwitchNames)); 2963 arraysize(kWebRtcDevSwitchNames));
2964 } 2964 }
2965 } 2965 }
2966 #endif // defined(ENABLE_WEBRTC) 2966 #endif // defined(ENABLE_WEBRTC)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698