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

Unified Diff: services/java_handler/java_handler.cc

Issue 1993053002: Simplify ContentHandlerFactory a bit. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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 | « services/java_handler/java_handler.h ('k') | services/js/content_handler_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/java_handler/java_handler.cc
diff --git a/services/java_handler/java_handler.cc b/services/java_handler/java_handler.cc
index 1387c1a2fb9cd022787b575679aaa554db0497c0..b7949de8e9eabf24271c3a478a3c3b219129013f 100644
--- a/services/java_handler/java_handler.cc
+++ b/services/java_handler/java_handler.cc
@@ -53,7 +53,7 @@ bool RegisterJNI(JNIEnv* env) {
namespace services {
namespace android {
-JavaHandler::JavaHandler() : content_handler_factory_(this) {}
+JavaHandler::JavaHandler() {}
JavaHandler::~JavaHandler() {}
@@ -121,7 +121,7 @@ void JavaHandler::GetApplication(base::FilePath* archive_path,
bool JavaHandler::ConfigureIncomingConnection(
mojo::ServiceProviderImpl* service_provider_impl) {
service_provider_impl->AddService<mojo::ContentHandler>(
- content_handler_factory_.GetInterfaceRequestHandler());
+ mojo::ContentHandlerFactory::GetInterfaceRequestHandler(this));
return true;
}
« no previous file with comments | « services/java_handler/java_handler.h ('k') | services/js/content_handler_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698