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

Unified Diff: extensions/browser/mojo/keep_alive_impl.cc

Issue 1148703002: Remove mojo::InterfaceImpl from extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « extensions/browser/mojo/keep_alive_impl.h ('k') | extensions/renderer/mojo/keep_alive_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/mojo/keep_alive_impl.cc
diff --git a/extensions/browser/mojo/keep_alive_impl.cc b/extensions/browser/mojo/keep_alive_impl.cc
index 04e496608246e8698c0e9ccf9d0ef9ed8e3e3bd0..9b805989db9d3e3bdbf28589042047d01ec1bd10 100644
--- a/extensions/browser/mojo/keep_alive_impl.cc
+++ b/extensions/browser/mojo/keep_alive_impl.cc
@@ -12,12 +12,13 @@ namespace extensions {
void KeepAliveImpl::Create(content::BrowserContext* context,
const Extension* extension,
mojo::InterfaceRequest<KeepAlive> request) {
- mojo::BindToRequest(new KeepAliveImpl(context, extension), &request);
+ new KeepAliveImpl(context, extension, request.Pass());
}
KeepAliveImpl::KeepAliveImpl(content::BrowserContext* context,
- const Extension* extension)
- : context_(context), extension_(extension) {
+ const Extension* extension,
+ mojo::InterfaceRequest<KeepAlive> request)
+ : context_(context), extension_(extension), binding_(this, request.Pass()) {
ProcessManager::Get(context_)->IncrementLazyKeepaliveCount(extension_);
}
« no previous file with comments | « extensions/browser/mojo/keep_alive_impl.h ('k') | extensions/renderer/mojo/keep_alive_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698