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

Unified Diff: chrome/browser/extensions/extension_bookmarks_module.cc

Issue 180016: Extension API Renaming/Consistency changes (Closed)
Patch Set: render docs Created 11 years, 4 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/extensions/extension_bookmarks_module_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_bookmarks_module.cc
diff --git a/chrome/browser/extensions/extension_bookmarks_module.cc b/chrome/browser/extensions/extension_bookmarks_module.cc
index 66ecd57471c26bd1479bfb5d355b242e48814e33..1edef1c6dfc7dfa4d3a16ed7cbaf5276f113f15e 100644
--- a/chrome/browser/extensions/extension_bookmarks_module.cc
+++ b/chrome/browser/extensions/extension_bookmarks_module.cc
@@ -203,7 +203,7 @@ void ExtensionBookmarkEventRouter::BookmarkNodeAdded(BookmarkModel* model,
std::string json_args;
JSONWriter::Write(&args, false, &json_args);
- DispatchEvent(model->profile(), keys::kOnBookmarkAdded, json_args);
+ DispatchEvent(model->profile(), keys::kOnBookmarkCreated, json_args);
}
void ExtensionBookmarkEventRouter::BookmarkNodeRemoved(
@@ -258,7 +258,9 @@ void ExtensionBookmarkEventRouter::BookmarkNodeChildrenReordered(
Value* child_id = new StringValue(Int64ToString(child->id()));
children->Append(child_id);
}
- args.Append(children);
+ DictionaryValue* reorder_info = new DictionaryValue();
+ reorder_info->Set(keys::kChildIdsKey, children);
+ args.Append(reorder_info);
std::string json_args;
JSONWriter::Write(&args, false, &json_args);
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_bookmarks_module_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698