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

Unified Diff: chrome/utility/extensions/extensions_handler.cc

Issue 2697463002: Convert utility process extension Unpacker IPC to mojo (Closed)
Patch Set: Use MakeUnique when creating the utility mojo client. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/utility/extensions/extensions_handler.cc
diff --git a/chrome/utility/extensions/extensions_handler.cc b/chrome/utility/extensions/extensions_handler.cc
index cef009a686baf36881e5f54eedbb5d66c08d12b7..53f871df20aeef35169ba5e3dc398acadcbb3eed 100644
--- a/chrome/utility/extensions/extensions_handler.cc
+++ b/chrome/utility/extensions/extensions_handler.cc
@@ -185,8 +185,7 @@ ExtensionsHandler::ExtensionsHandler() {
ExtensionsClient::Set(ChromeExtensionsClient::GetInstance());
}
-ExtensionsHandler::~ExtensionsHandler() {
-}
+ExtensionsHandler::~ExtensionsHandler() = default;
// static
void ExtensionsHandler::PreSandboxStartup() {
@@ -195,10 +194,16 @@ void ExtensionsHandler::PreSandboxStartup() {
}
// static
+void ExtensionsHandler::UtilityThreadStarted() {
+ UtilityHandler::UtilityThreadStarted();
Devlin 2017/02/14 17:24:59 Why do we need this method, as opposed to calling
Noel Gordon 2017/02/15 17:28:08 ExtensionsHandler owns a UtilityHandler utility_ha
Devlin 2017/02/17 15:53:56 I don't quite follow - this is a static method, so
+}
+
+// static
void ExtensionsHandler::ExposeInterfacesToBrowser(
service_manager::InterfaceRegistry* registry,
ChromeContentUtilityClient* utility_client,
bool running_elevated) {
+ UtilityHandler::ExposeInterfacesToBrowser(registry, running_elevated);
// If our process runs with elevated privileges, only add elevated Mojo
// services to the interface registry.
if (running_elevated) {

Powered by Google App Engine
This is Rietveld 408576698