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() |