diff options
author | amistry <amistry@chromium.org> | 2016-03-14 15:35:23 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-14 22:36:38 +0000 |
commit | f223b129dbf452ffb8040136efca8a17554b21a0 (patch) | |
tree | fc39d8f39e9f6b525846f112d63247748e2cd817 /content/public/renderer | |
parent | 867bcf4ae6b7e8e64b72cfa4cef2ab7cdd2239cf (diff) | |
download | chromium_src-f223b129dbf452ffb8040136efca8a17554b21a0.zip chromium_src-f223b129dbf452ffb8040136efca8a17554b21a0.tar.gz chromium_src-f223b129dbf452ffb8040136efca8a17554b21a0.tar.bz2 |
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}
Diffstat (limited to 'content/public/renderer')
-rw-r--r-- | content/public/renderer/render_thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; }; |