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

Unified Diff: components/bookmarks/browser/bookmark_model_observer.h

Issue 338593002: Set metainfo ID for enhanced bookmarks extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: fix signed/unsigned error Created 6 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
Index: components/bookmarks/browser/bookmark_model_observer.h
diff --git a/components/bookmarks/browser/bookmark_model_observer.h b/components/bookmarks/browser/bookmark_model_observer.h
index f3e1f9a52a11ba117083e4b29e3c52f336f0b461..d1dc8f8a0b5fe16b055d02ef29b7bb17a67e8455 100644
--- a/components/bookmarks/browser/bookmark_model_observer.h
+++ b/components/bookmarks/browser/bookmark_model_observer.h
@@ -29,6 +29,12 @@ class BookmarkModelObserver {
const BookmarkNode* new_parent,
int new_index) = 0;
+ // Invoked prior to adding a bookmark node, and in particular, prior to adding
+ // it to the parent. This function can be used to alter the contents of the
+ // node before BookmarkNodeAdded listeners know about it.
+ virtual void BookmarkNodeAdding(BookmarkModel* model,
Yoyo Zhou 2014/06/13 23:54:00 OnWillAddBookmarkNode is more consistent with the
Mike Wittman 2014/06/14 00:49:55 Changed to OnWillAddBookmarkNode.
+ BookmarkNode* node) {}
+
// Invoked when a node has been added.
virtual void BookmarkNodeAdded(BookmarkModel* model,
const BookmarkNode* parent,

Powered by Google App Engine
This is Rietveld 408576698