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

Unified Diff: remoting/client/plugin/chromoting_scriptable_object.cc

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/client/plugin/chromoting_scriptable_object.cc
diff --git a/remoting/client/plugin/chromoting_scriptable_object.cc b/remoting/client/plugin/chromoting_scriptable_object.cc
index ce632881cbf228260ec5760e3b260eaab7f5fcbf..28c630397145cd0433c2adfeedb56044397ae988 100644
--- a/remoting/client/plugin/chromoting_scriptable_object.cc
+++ b/remoting/client/plugin/chromoting_scriptable_object.cc
@@ -365,7 +365,6 @@ Var ChromotingScriptableObject::DoConnect(const std::vector<Var>& args,
// host_public_key
// client_jid
// access_code (optional)
- // use_p2p_api (optional)
unsigned int arg = 0;
if (!args[arg].is_string()) {
*exception = Var("The host_jid must be a string.");
@@ -394,15 +393,6 @@ Var ChromotingScriptableObject::DoConnect(const std::vector<Var>& args,
access_code = args[arg++].AsString();
}
- bool use_p2p_api = false;
- if (args.size() > arg) {
- if (!args[arg].is_bool()) {
- *exception = Var("The use_p2p_api parameter must be a boolean.");
- return Var();
- }
- use_p2p_api = args[arg++].AsBool();
- }
-
if (args.size() != arg) {
*exception = Var("Too many agruments passed to connect().");
return Var();
@@ -416,7 +406,7 @@ Var ChromotingScriptableObject::DoConnect(const std::vector<Var>& args,
config.host_jid = host_jid;
config.host_public_key = host_public_key;
config.access_code = access_code;
- instance_->Connect(config, use_p2p_api);
+ instance_->Connect(config);
return Var();
}

Powered by Google App Engine
This is Rietveld 408576698