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

Unified Diff: remoting/webapp/base/js/base.js

Issue 1070223003: [Webapp Refactor] Remove remoting.js. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's feedback Created 5 years, 8 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 | « remoting/webapp/base/js/application.js ('k') | remoting/webapp/crd/js/client_session.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/base/js/base.js
diff --git a/remoting/webapp/base/js/base.js b/remoting/webapp/base/js/base.js
index 73a5b3abf20bcfda4466771e2ac7c9cd389bd477..743f0c726a77aaf29ad6ef20cbff7ded38223511 100644
--- a/remoting/webapp/base/js/base.js
+++ b/remoting/webapp/base/js/base.js
@@ -747,6 +747,16 @@ base.jsonParseSafe = function(jsonString) {
};
/**
+ * Return the current time as a formatted string suitable for logging.
+ *
+ * @return {string} The current time, formatted as the standard ISO string.
+ * [yyyy-mm-ddDhh:mm:ss.xyz]
+ */
+base.timestamp = function() {
+ return '[' + new Date().toISOString() + ']';
+};
+
+/**
* Size the current window to fit its content vertically.
*/
base.resizeWindowToContent = function() {
« no previous file with comments | « remoting/webapp/base/js/application.js ('k') | remoting/webapp/crd/js/client_session.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698