Index: content/common/child_thread.cc |
=================================================================== |
--- content/common/child_thread.cc (revision 186267) |
+++ content/common/child_thread.cc (working copy) |
@@ -328,7 +328,8 @@ |
#endif |
ChildThread* ChildThread::current() { |
- return ChildProcess::current()->main_thread(); |
+ return ChildProcess::current() ? |
+ ChildProcess::current()->main_thread() : NULL; |
} |
bool ChildThread::IsWebFrameValid(WebKit::WebFrame* frame) { |