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

Unified Diff: chrome/browser/resources/history/externs.js

Issue 2203263002: History: Add load-time metric for non-MD and MD History WebUI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/history/externs.js
diff --git a/chrome/browser/resources/history/externs.js b/chrome/browser/resources/history/externs.js
index 123c2502abc39e8bbf3ba359b83066e255b22ef8..9a07638b194a2aa397107c37eaea8eea69691486 100644
--- a/chrome/browser/resources/history/externs.js
+++ b/chrome/browser/resources/history/externs.js
@@ -75,3 +75,12 @@ var ForeignSessionWindow;
* windows: Array<ForeignSessionWindow>}}
*/
var ForeignSession;
+
+// Other externs required to compile history:
+
+var performance = {};
+
+/**
+ * @return {number}
+ */
+performance.now = function() {};
Dan Beam 2016/08/03 21:05:17 i haz a sad https://github.com/google/closure-comp
tsergeant 2016/08/03 22:53:56 Is there any particular reason why these aren't pu
Dan Beam 2016/08/04 03:51:33 it should be. have you tried window.performance.no
tsergeant 2016/08/04 03:59:06 Ah, that works 🙌 (that doesn't show up in a code
« no previous file with comments | « no previous file | chrome/browser/resources/history/history.js » ('j') | chrome/browser/resources/history/history.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698