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

Unified Diff: services/url_response_disk_cache/url_response_disk_cache_app.cc

Issue 1980763002: ApplicationConnection devolution, part 2.3. (Closed) Base URL: https://github.com/domokit/mojo.git@work794_app_conn_devo_2.2
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
Index: services/url_response_disk_cache/url_response_disk_cache_app.cc
diff --git a/services/url_response_disk_cache/url_response_disk_cache_app.cc b/services/url_response_disk_cache/url_response_disk_cache_app.cc
index e63d15f9cb3c3cc7dc6851d1ac47394428dae665..a2f6ed829ac4f61a86a9ec11caab6e96d86f5074 100644
--- a/services/url_response_disk_cache/url_response_disk_cache_app.cc
+++ b/services/url_response_disk_cache/url_response_disk_cache_app.cc
@@ -25,15 +25,13 @@ void URLResponseDiskCacheApp::Initialize(ApplicationImpl* app) {
bool URLResponseDiskCacheApp::ConfigureIncomingConnection(
ApplicationConnection* connection) {
- connection->AddService<URLResponseDiskCache>(this);
+ connection->GetServiceProviderImpl().AddService<URLResponseDiskCache>([this](
+ const ConnectionContext& connection_context,
+ InterfaceRequest<URLResponseDiskCache> request) {
+ new URLResponseDiskCacheImpl(task_runner_, delegate_, db_,
+ connection_context.remote_url, request.Pass());
+ });
return true;
}
-void URLResponseDiskCacheApp::Create(
- const ConnectionContext& connection_context,
- InterfaceRequest<URLResponseDiskCache> request) {
- new URLResponseDiskCacheImpl(task_runner_, delegate_, db_,
- connection_context.remote_url, request.Pass());
-}
-
} // namespace mojo
« no previous file with comments | « services/url_response_disk_cache/url_response_disk_cache_app.h ('k') | shell/android/native_viewport_application_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698