From f223b129dbf452ffb8040136efca8a17554b21a0 Mon Sep 17 00:00:00 2001 From: amistry Date: Mon, 14 Mar 2016 15:35:23 -0700 Subject: Never return nullptr in RenderThread::GetServiceRegistry(). Going forward, since Mojo usage is going to increase, it doesn't make sense to have to deal with the possibility of ServiceRegistry not existing. To eliminate confusion, guarantee it always exists, even in tests. BUG=None Review URL: https://codereview.chromium.org/1790323003 Cr-Commit-Position: refs/heads/master@{#381095} --- content/public/renderer/render_thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content/public/renderer') diff --git a/content/public/renderer/render_thread.h b/content/public/renderer/render_thread.h index 97cbda1..db554c1 100644 --- a/content/public/renderer/render_thread.h +++ b/content/public/renderer/render_thread.h @@ -113,7 +113,7 @@ class CONTENT_EXPORT RenderThread : virtual public ChildThread { // Gets the shutdown event for the process. virtual base::WaitableEvent* GetShutdownEvent() = 0; - // Returns the ServiceRegistry for this thread. + // Returns the ServiceRegistry for this thread. Never returns nullptr. virtual ServiceRegistry* GetServiceRegistry() = 0; }; -- cgit v1.1