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

Unified Diff: chrome/browser/views/tabs/tab_overview_drag_controller.cc

Issue 151172: Adds user metrics for tab overview. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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: chrome/browser/views/tabs/tab_overview_drag_controller.cc
===================================================================
--- chrome/browser/views/tabs/tab_overview_drag_controller.cc (revision 19761)
+++ chrome/browser/views/tabs/tab_overview_drag_controller.cc (working copy)
@@ -8,6 +8,7 @@
#include "chrome/browser/browser_window.h"
#include "chrome/browser/dock_info.h"
#include "chrome/browser/gtk/browser_window_gtk.h"
+#include "chrome/browser/metrics/user_metrics.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/tabs/tab_strip_model.h"
#include "chrome/browser/tab_contents/tab_contents.h"
@@ -93,6 +94,8 @@
dragging_ = true;
controller_->DragStarted();
grid()->set_floating_index(current_index_);
+ UserMetrics::RecordAction(L"TabOverview_DragCell",
+ original_model_->profile());
}
if (dragging_)
DragCell(location);
@@ -107,6 +110,8 @@
if (mouse_over_mini_window_) {
// Dragged over a mini window, add as the last tab to the browser.
Attach(model()->count());
+ UserMetrics::RecordAction(L"TabOverview_DropOnMiniWindow",
+ original_model_->profile());
} else {
DropTab(location);
}
@@ -334,6 +339,9 @@
return;
}
+ UserMetrics::RecordAction(L"TabOverview_DetachCell",
+ original_model_->profile());
+
detached_window_ = CreateDetachedWindow(
location, model()->GetTabContentsAt(current_index_));
detached_window_->Show();
« no previous file with comments | « chrome/browser/views/new_browser_window_widget.cc ('k') | chrome/browser/views/tabs/tab_overview_message_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698