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

Unified Diff: ios/chrome/browser/ui/browser_view_controller.mm

Issue 2629073003: Ensure PreloadController is deallocated. (Closed)
Patch Set: Created 3 years, 11 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 | ios/chrome/browser/ui/preload_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/browser_view_controller.mm
diff --git a/ios/chrome/browser/ui/browser_view_controller.mm b/ios/chrome/browser/ui/browser_view_controller.mm
index 96a7e1384d5a4ca4e19d7957b06151b6aeffe29a..fb6045a547376d1c2a64e439c906c9a54b51fb8a 100644
--- a/ios/chrome/browser/ui/browser_view_controller.mm
+++ b/ios/chrome/browser/ui/browser_view_controller.mm
@@ -1675,6 +1675,8 @@ class BrowserBookmarkModelBridge : public bookmarks::BookmarkModelObserver {
BrowserListIOS::RemoveBrowser(self);
[_toolbarController browserStateDestroyed];
[_model browserStateDestroyed];
+ [_preloadController browserStateDestroyed];
+ _preloadController.reset();
// The file remover needs the browser state, so needs to be destroyed now.
_externalFileRemover.reset();
_browserState = nullptr;
« no previous file with comments | « no previous file | ios/chrome/browser/ui/preload_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698