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

Unified Diff: chrome/browser/resources/sync_internals/chrome_sync.js

Issue 7055023: [Sync] Implement search frontend in chrome://sync-internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: diff against right branch Created 9 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/resources/sync_internals/search.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/sync_internals/chrome_sync.js
diff --git a/chrome/browser/resources/sync_internals/chrome_sync.js b/chrome/browser/resources/sync_internals/chrome_sync.js
index e0eb4cfef756ff292dad1e78675d5ee0c6fd2b92..aa91c7414069525473876fd8949f332533ffe7d2 100644
--- a/chrome/browser/resources/sync_internals/chrome_sync.js
+++ b/chrome/browser/resources/sync_internals/chrome_sync.js
@@ -150,4 +150,21 @@ for (var i = 0; i < syncFunctions.length; ++i) {
chrome.sync[syncFunction] = makeSyncFunction(syncFunction);
}
+/**
+ * Returns an object which measures elapsed time.
+ */
+chrome.sync.makeTimer = function() {
+ var start = new Date();
+
+ return {
+ /**
+ * @return {number} The number of seconds since the timer was
+ * created.
+ */
+ get elapsedSeconds() {
+ return ((new Date()).getTime() - start.getTime()) / 1000.0;
+ }
+ };
+};
+
})();
« no previous file with comments | « no previous file | chrome/browser/resources/sync_internals/search.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698