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

Unified Diff: content/public/test/mock_render_process_host.cc

Issue 1223193009: WIP attempt to replace StartWorker/StopWorker IPCs with a new mojo EmbeddedWorker service. Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-event-dispatching-option2
Patch Set: Created 5 years, 5 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 | « content/public/test/mock_render_process_host.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_render_process_host.cc
diff --git a/content/public/test/mock_render_process_host.cc b/content/public/test/mock_render_process_host.cc
index b988309d1519e42b6e99f9c31e559a8e4441bb5a..3f2fba79b46cff4df67530873d90eff4677e5a41 100644
--- a/content/public/test/mock_render_process_host.cc
+++ b/content/public/test/mock_render_process_host.cc
@@ -252,7 +252,9 @@ void MockRenderProcessHost::NotifyTimezoneChange(const std::string& zone_id) {
}
ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() {
- return NULL;
+ if (!service_registry_)
+ service_registry_.reset(new ServiceRegistryImpl());
+ return service_registry_.get();
}
const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics()
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698