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

Unified Diff: chrome/browser/bookmarks/bookmark_model.cc

Issue 14471: Attempt 2 at this. This differs from first version in that I renamed... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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 | « chrome/browser/bookmarks/bookmark_model.h ('k') | chrome/browser/views/bookmark_bar_view_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_model.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_model.cc (revision 7069)
+++ chrome/browser/bookmarks/bookmark_model.cc (working copy)
@@ -321,6 +321,14 @@
SetDateGroupModified(node, Time());
}
+void BookmarkModel::ClearStore() {
+ if (profile_ && store_.get()) {
+ NotificationService::current()->RemoveObserver(
+ this, NOTIFY_FAVICON_CHANGED, Source<Profile>(profile_));
+ }
+ store_ = NULL;
+}
+
bool BookmarkModel::IsBookmarkedNoLock(const GURL& url) {
BookmarkNode tmp_node(this, url);
return (nodes_ordered_by_url_set_.find(&tmp_node) !=
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model.h ('k') | chrome/browser/views/bookmark_bar_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698