Index: content/browser/browser_thread_impl.cc |
=================================================================== |
--- content/browser/browser_thread_impl.cc (revision 153862) |
+++ content/browser/browser_thread_impl.cc (working copy) |
@@ -238,12 +238,12 @@ |
// which would require a lock because std::map isn't thread safe, defeating |
// the whole purpose of this optimization. |
BrowserThread::ID current_thread; |
- bool guaranteed_to_outlive_target_thread = |
+ bool target_thread_outlives_current = |
GetCurrentThreadIdentifier(¤t_thread) && |
- current_thread <= identifier; |
+ current_thread >= identifier; |
BrowserThreadGlobals& globals = g_globals.Get(); |
- if (!guaranteed_to_outlive_target_thread) |
+ if (!target_thread_outlives_current) |
globals.lock.Acquire(); |
MessageLoop* message_loop = globals.threads[identifier] ? |
@@ -256,7 +256,7 @@ |
} |
} |
- if (!guaranteed_to_outlive_target_thread) |
+ if (!target_thread_outlives_current) |
globals.lock.Release(); |
return !!message_loop; |