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

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

Issue 7981025: Use P2P Transport API by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 3 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
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;
« remoting/client/plugin/chromoting_instance.cc ('K') | « remoting/webapp/me2mom/client_session.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698