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

Unified Diff: remoting/webapp/remoting.js

Issue 344483002: Enable MediaSource rendering in chromoting client with Chrome 37. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/plugin_settings.js ('k') | remoting/webapp/server_log_entry.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/remoting.js
diff --git a/remoting/webapp/remoting.js b/remoting/webapp/remoting.js
index 52357f7422128ea0c95e1239eafc0dc2fc9f73a9..ffb078b4ea2754b659003a01dec30da96ec04687 100644
--- a/remoting/webapp/remoting.js
+++ b/remoting/webapp/remoting.js
@@ -326,6 +326,18 @@ remoting.getExtensionInfo = function() {
};
/**
+ * Returns Chrome version.
+ * @return {string?}
+ */
+remoting.getChromeVersion = function() {
+ var match = new RegExp('Chrome/([0-9.]*)').exec(navigator.userAgent);
+ if (match && (match.length >= 2)) {
+ return match[1];
+ }
+ return null;
+};
+
+/**
* If an IT2Me client or host is active then prompt the user before closing.
* If a Me2Me client is active then don't bother, since closing the window is
* the more intuitive way to end a Me2Me session, and re-connecting is easy.
« no previous file with comments | « remoting/webapp/plugin_settings.js ('k') | remoting/webapp/server_log_entry.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698