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

Unified Diff: remoting/webapp/server_log_entry.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/remoting.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/server_log_entry.js
diff --git a/remoting/webapp/server_log_entry.js b/remoting/webapp/server_log_entry.js
index cd758b9953cb18eb569f108b200495eef147b0d9..557f014c042098d09c97a975e52d04c930809049 100644
--- a/remoting/webapp/server_log_entry.js
+++ b/remoting/webapp/server_log_entry.js
@@ -421,38 +421,13 @@ remoting.ServerLogEntry.extractHostDataFrom = function(s) {
* Adds a field specifying the browser version to this log entry.
*/
remoting.ServerLogEntry.prototype.addChromeVersionField = function() {
- var version = remoting.ServerLogEntry.getChromeVersion();
+ var version = remoting.getChromeVersion();
if (version != null) {
this.set(remoting.ServerLogEntry.KEY_BROWSER_VERSION_, version);
}
};
/**
- * Extracts the Chrome version from the userAgent string.
- *
- * @private
- * @return {string | null}
- */
-remoting.ServerLogEntry.getChromeVersion = function() {
- return remoting.ServerLogEntry.extractChromeVersionFrom(navigator.userAgent);
-};
-
-/**
- * Extracts the Chrome version from the given userAgent string.
- *
- * @private
- * @param {string} s
- * @return {string | null}
- */
-remoting.ServerLogEntry.extractChromeVersionFrom = function(s) {
- var match = new RegExp('Chrome/([0-9.]*)').exec(s);
- if (match && (match.length >= 2)) {
- return match[1];
- }
- return null;
-};
-
-/**
* Adds a field specifying the webapp version to this log entry.
*/
remoting.ServerLogEntry.prototype.addWebappVersionField = function() {
« no previous file with comments | « remoting/webapp/remoting.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698