Index: remoting/webapp/me2mom/remoting.js |
diff --git a/remoting/webapp/me2mom/remoting.js b/remoting/webapp/me2mom/remoting.js |
index 9110d4a3f75fe76c90df882a836f6cbdfdd69279..2d3fe0001403b5eb9ca8dda6d34d6473f73c7874 100644 |
--- a/remoting/webapp/me2mom/remoting.js |
+++ b/remoting/webapp/me2mom/remoting.js |
@@ -54,14 +54,6 @@ remoting.ClientError = { |
*/ |
remoting.scaleToFit = false; |
-/** |
- * Whether or not the P2P Transport API should be used. This flag is an interim |
- * measure to allow testing by early adopters, and will be removed when P2P API |
- * is enabled by default. See http://crbug.com/51198 for details. |
- * @type {boolean} |
- */ |
-remoting.useP2pApi = false; |
- |
// Constants representing keys used for storing persistent application state. |
var KEY_APP_MODE_ = 'remoting-app-mode'; |
var KEY_EMAIL_ = 'remoting-email'; |
@@ -180,8 +172,6 @@ remoting.init = function() { |
document.getElementById('client-footer-text-cros').id = |
'client-footer-text'; |
} |
- |
- remoting.useP2pApi = !(window.localStorage.getItem(KEY_USE_P2P_API_) == null); |
} |
/** |
@@ -729,15 +719,6 @@ remoting.checkHotkeys = function(event) { |
} |
} |
-remoting.setUseP2pApi = function(use) { |
- remoting.useP2pApi = use; |
- if (use) { |
- window.localStorage.setItem(KEY_USE_P2P_API_, 'true'); |
- } else { |
- window.localStorage.removeItem(KEY_USE_P2P_API_); |
- } |
-} |
- |
function recenterToolbar_() { |
var toolbar = document.getElementById('session-toolbar'); |
var toolbarX = (window.innerWidth - toolbar.clientWidth) / 2; |