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

Unified Diff: chrome/browser/resources/ntp4/recently_closed.js

Issue 7550015: ntp4: record app launch source (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: upload for real Created 9 years, 5 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/resources/ntp4/recently_closed.js
diff --git a/chrome/browser/resources/ntp4/recently_closed.js b/chrome/browser/resources/ntp4/recently_closed.js
index 04750a29b7b2d829db180cf971b2a108c8998438..042de8db2c4d4e9c999ad6616e74f37fea1783af 100644
--- a/chrome/browser/resources/ntp4/recently_closed.js
+++ b/chrome/browser/resources/ntp4/recently_closed.js
@@ -90,8 +90,13 @@ cr.define('ntp4', function() {
}
function onActivate(e) {
+ chrome.send('recordAppLaunchByURL',
+ [encodeURIComponent(data.url),
+ ntp4.APP_LAUNCH.NTP_RECENTLY_CLOSED]);
// TODO(estade): don't convert to string.
chrome.send('reopenTab', [String(data.sessionId)]);
+ // We are likely deleted by this point!
+
e.preventDefault();
}
a.addEventListener('activate', onActivate);

Powered by Google App Engine
This is Rietveld 408576698