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

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: 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
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;

Powered by Google App Engine
This is Rietveld 408576698