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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2043753002: Declarative resource hints go through mojo IPC to //content Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove gmocking + add another browser test Created 4 years, 6 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: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 4c2131cb6b8ca0fb514714c4232ff6964f84e936..4d06d2ee91c4c82796e33285b91d5426cd97e577 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -75,6 +75,7 @@
#include "content/browser/histogram_message_filter.h"
#include "content/browser/indexed_db/indexed_db_context_impl.h"
#include "content/browser/indexed_db/indexed_db_dispatcher_host.h"
+#include "content/browser/loader/resource_hints_handler_impl.h"
#include "content/browser/loader/resource_message_filter.h"
#include "content/browser/loader/resource_scheduler_filter.h"
#include "content/browser/media/capture/audio_mirroring_manager.h"
@@ -1032,6 +1033,9 @@ void RenderProcessHostImpl::RegisterMojoServices() {
base::Bind(&PermissionServiceContext::CreateService,
base::Unretained(permission_service_context_.get())));
+ mojo_application_host_->service_registry()->AddService(base::Bind(
+ &ResourceHintsHandlerImpl::RegisterConnection, base::Unretained(this)));
+
// TODO(mcasas): finalize arguments.
mojo_application_host_->service_registry()->AddService(
base::Bind(&ImageCaptureImpl::Create));

Powered by Google App Engine
This is Rietveld 408576698