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

Side by Side Diff: chrome/utility/chrome_content_utility_client.cc

Issue 2697463002: Convert utility process extension Unpacker IPC to mojo (Closed)
Patch Set: Sync to ToT. Created 3 years, 9 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/utility/chrome_content_utility_client.h" 5 #include "chrome/utility/chrome_content_utility_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 } 204 }
205 205
206 return false; 206 return false;
207 } 207 }
208 208
209 void ChromeContentUtilityClient::ExposeInterfacesToBrowser( 209 void ChromeContentUtilityClient::ExposeInterfacesToBrowser(
210 service_manager::InterfaceRegistry* registry) { 210 service_manager::InterfaceRegistry* registry) {
211 #if BUILDFLAG(ENABLE_EXTENSIONS) 211 #if BUILDFLAG(ENABLE_EXTENSIONS)
212 extensions::ExtensionsHandler::ExposeInterfacesToBrowser( 212 extensions::ExtensionsHandler::ExposeInterfacesToBrowser(
213 registry, utility_process_running_elevated_); 213 registry, utility_process_running_elevated_);
214 extensions::UtilityHandler::ExposeInterfacesToBrowser(
215 registry, utility_process_running_elevated_);
214 #endif 216 #endif
215 // If our process runs with elevated privileges, only add elevated Mojo 217 // If our process runs with elevated privileges, only add elevated Mojo
216 // services to the interface registry. 218 // services to the interface registry.
217 if (utility_process_running_elevated_) 219 if (utility_process_running_elevated_)
218 return; 220 return;
219 221
220 registry->AddInterface(base::Bind(&FilePatcherImpl::Create)); 222 registry->AddInterface(base::Bind(&FilePatcherImpl::Create));
221 #if !defined(OS_ANDROID) 223 #if !defined(OS_ANDROID)
222 registry->AddInterface<net::interfaces::ProxyResolverFactory>( 224 registry->AddInterface<net::interfaces::ProxyResolverFactory>(
223 base::Bind(CreateProxyResolverFactory)); 225 base::Bind(CreateProxyResolverFactory));
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 safe_browsing::zip_analyzer::Results results; 298 safe_browsing::zip_analyzer::Results results;
297 safe_browsing::dmg::AnalyzeDMGFile( 299 safe_browsing::dmg::AnalyzeDMGFile(
298 IPC::PlatformFileForTransitToFile(dmg_file), &results); 300 IPC::PlatformFileForTransitToFile(dmg_file), &results);
299 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( 301 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished(
300 results)); 302 results));
301 ReleaseProcessIfNeeded(); 303 ReleaseProcessIfNeeded();
302 } 304 }
303 #endif // defined(OS_MACOSX) 305 #endif // defined(OS_MACOSX)
304 306
305 #endif // defined(FULL_SAFE_BROWSING) 307 #endif // defined(FULL_SAFE_BROWSING)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698