Index: base/ios/weak_nsobject.h |
diff --git a/base/ios/weak_nsobject.h b/base/ios/weak_nsobject.h |
index a1984bb91824dbc886570d43363b1d9162a3b939..fc3a7c38dc4ab5b195bdc9669d5ff50bc1095e7f 100644 |
--- a/base/ios/weak_nsobject.h |
+++ b/base/ios/weak_nsobject.h |
@@ -117,7 +117,9 @@ class WeakNSProtocol { |
} |
WeakNSProtocol& operator=(const WeakNSProtocol<NST>& that) { |
- DCHECK(checker_.CalledOnValidThread()); |
+ // A WeakNSProtocol object can be copied on one thread and used on |
+ // another. |
+ checker_.DetachFromThread(); |
container_ = that.container_; |
return *this; |
} |