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

Unified Diff: ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm

Issue 2936563002: [clean ios] Fix TabCollectionMediator disconnect. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm
diff --git a/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm b/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm
index e6a8eebcbe26236b0c10343400a8aeeda796d7c5..794a4fbabf2a1f438668b8e0439cd89b5bfb58b7 100644
--- a/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm
+++ b/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm
@@ -49,7 +49,7 @@
- (void)disconnect {
_webStateList = nullptr;
- _webStateObserver.reset();
+ _scopedWebStateListObserver->RemoveAll();
sdefresne 2017/06/12 09:48:07 I don't understand the comment that ScopedObserver
marq (ping after 24h) 2017/06/13 08:18:53 Yeah, brain fart on my part. Does it make sense t
sdefresne 2017/06/13 09:00:27 WebStateObserver is a weird observer that auto-unr
}
#pragma mark - Properties
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698