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

Unified Diff: extensions/browser/api/mime_handler_private/mime_handler_private.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
Index: extensions/browser/api/mime_handler_private/mime_handler_private.cc
diff --git a/extensions/browser/api/mime_handler_private/mime_handler_private.cc b/extensions/browser/api/mime_handler_private/mime_handler_private.cc
index 13caee208f0557a23542b4848829c463f6668de1..2f4c1967dc7b6a90285422dd69b9d70a5831dce8 100644
--- a/extensions/browser/api/mime_handler_private/mime_handler_private.cc
+++ b/extensions/browser/api/mime_handler_private/mime_handler_private.cc
@@ -49,12 +49,15 @@ mojo::Map<mojo::String, mojo::String> CreateResponseHeadersMap(
void MimeHandlerServiceImpl::Create(
base::WeakPtr<StreamContainer> stream_container,
mojo::InterfaceRequest<mime_handler::MimeHandlerService> request) {
- mojo::BindToRequest(new MimeHandlerServiceImpl(stream_container), &request);
+ new MimeHandlerServiceImpl(stream_container, request.Pass());
}
MimeHandlerServiceImpl::MimeHandlerServiceImpl(
- base::WeakPtr<StreamContainer> stream_container)
- : stream_(stream_container), weak_factory_(this) {
+ base::WeakPtr<StreamContainer> stream_container,
+ mojo::InterfaceRequest<mime_handler::MimeHandlerService> request)
+ : stream_(stream_container),
+ binding_(this, request.Pass()),
+ weak_factory_(this) {
}
MimeHandlerServiceImpl::~MimeHandlerServiceImpl() {

Powered by Google App Engine
This is Rietveld 408576698