summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/dom_ui/new_tab_ui.cc4
-rw-r--r--chrome/browser/resources/new_tab.html1
2 files changed, 1 insertions, 4 deletions
diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc
index 02177b1..729c9dc 100644
--- a/chrome/browser/dom_ui/new_tab_ui.cc
+++ b/chrome/browser/dom_ui/new_tab_ui.cc
@@ -649,10 +649,6 @@ void RecentlyClosedTabsHandler::HandleReopenTab(const Value* content) {
for (TabRestoreService::Tabs::const_iterator it = tabs.begin();
it != tabs.end(); ++it) {
if (it->id == session_to_restore) {
- UserMetrics::RecordComputedAction(
- StringPrintf(L"NTP_TabRestored%d", session_to_restore),
- dom_ui_host_->profile());
-
TabRestoreService* tab_restore_service = tab_restore_service_;
browser->ReplaceRestoredTab(
it->navigations, it->current_navigation_index);
diff --git a/chrome/browser/resources/new_tab.html b/chrome/browser/resources/new_tab.html
index cb205ec..8fe2429 100644
--- a/chrome/browser/resources/new_tab.html
+++ b/chrome/browser/resources/new_tab.html
@@ -585,6 +585,7 @@ function renderRecentlyClosedTabs(entries) {
link.onclick = function(sessionId) {
return function() {
+ chrome.send("metrics", ["NTP_TabRestored" + i]);
/* This is a hack because chrome.send is hardcoded to only
accept arrays of strings. */
chrome.send('reopenTab', [sessionId.toString()]);