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

Unified Diff: base/thread_task_runner_handle.cc

Issue 13461029: The continue window is owned by the desktop environment now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac. Created 7 years, 8 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
Index: base/thread_task_runner_handle.cc
diff --git a/base/thread_task_runner_handle.cc b/base/thread_task_runner_handle.cc
index d1b07aaaf012f9f63a7282de5fb758b6a8503e7d..d2389b21d9136dd2a8bf88318dd8cdd93208b172 100644
--- a/base/thread_task_runner_handle.cc
+++ b/base/thread_task_runner_handle.cc
@@ -20,7 +20,9 @@ base::LazyInstance<base::ThreadLocalPointer<ThreadTaskRunnerHandle> >
// static
scoped_refptr<SingleThreadTaskRunner> ThreadTaskRunnerHandle::Get() {
ThreadTaskRunnerHandle* current = lazy_tls_ptr.Pointer()->Get();
- DCHECK(current);
+ if (!current)
+ return NULL;
+
return current->task_runner_;
}
« no previous file with comments | « no previous file | remoting/host/basic_desktop_environment.h » ('j') | remoting/host/plugin/host_script_object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698