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

Unified Diff: chrome/browser/resources/bookmark_manager/js/dnd.js

Issue 2512903002: Add bookmark bar/manager actions to track drag and drop. (Closed)
Patch Set: own BookmarkBar_DragEnd Created 4 years, 1 month 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/views/bookmarks/bookmark_bar_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/bookmark_manager/js/dnd.js
diff --git a/chrome/browser/resources/bookmark_manager/js/dnd.js b/chrome/browser/resources/bookmark_manager/js/dnd.js
index 0f0bffde29fa865f70c32d283a48ddaa5fcbd099..9f6df62de8c58590bb04e1e62ca02619e8f5c4f6 100644
--- a/chrome/browser/resources/bookmark_manager/js/dnd.js
+++ b/chrome/browser/resources/bookmark_manager/js/dnd.js
@@ -345,6 +345,7 @@ cr.define('dnd', function() {
chrome.bookmarkManagerPrivate.startDrag(draggedNodes.map(function(node) {
return node.id;
}), isFromTouch);
+ chrome.metricsPrivate.recordUserAction('BookmarkManager_StartDrag');
}
}
@@ -484,6 +485,8 @@ cr.define('dnd', function() {
else
chrome.bookmarkManagerPrivate.drop(dropInfo.parentId);
+ chrome.metricsPrivate.recordUserAction('BookmarkManager_Drop');
+
e.preventDefault();
}
dropDestination = null;
« no previous file with comments | « no previous file | chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698