Chromium Code Reviews| Index: content/child/child_io_surface_manager_mac.cc |
| diff --git a/content/child/child_io_surface_manager_mac.cc b/content/child/child_io_surface_manager_mac.cc |
| index 1e5665afd0afaf05a556c104833c40d8a8879382..ab97793e650d02389a58ce8d8f5399276d41b612 100644 |
| --- a/content/child/child_io_surface_manager_mac.cc |
| +++ b/content/child/child_io_surface_manager_mac.cc |
| @@ -96,7 +96,7 @@ IOSurfaceRef ChildIOSurfaceManager::AcquireIOSurface(int io_surface_id) { |
| // A valid token is required to acquire an IOSurface. This will wait for a |
| // valid token if one has not yet been set. |
| set_token_event_.Wait(); |
| -#if !defined(NDEBUG) |
| +#if DCHECK_IS_ON() |
| DCHECK(!(set_token_thread_id_ == base::PlatformThread::CurrentRef())); |
|
dshwang
2015/08/18 16:15:34
I rollback to PlatformThreadRef. I don't use base:
|
| #endif |
| DCHECK(!token_.IsZero()); |