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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm

Issue 2793363002: [Mac] Remove no-op method in bookmark bar controller (Closed)
Patch Set: Make test clearer Created 3 years, 8 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 | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm
index 16fa24fd9574174d053dc7541365323a6db0e8ee..58811b0d8c467f1110e4065513a3056a7f3d7f06 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm
@@ -51,9 +51,11 @@ void BookmarkBarBridge::BookmarkModelLoaded(BookmarkModel* model,
}
void BookmarkBarBridge::BookmarkModelBeingDeleted(BookmarkModel* model) {
- [controller_ beingDeleted:model];
model_->RemoveObserver(this);
model_ = nullptr;
+ // The browser may be being torn down; little is safe to do. As an
+ // example, it may not be safe to clear the pasteboard.
+ // http://crbug.com/38665
}
void BookmarkBarBridge::BookmarkNodeMoved(BookmarkModel* model,
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698