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

Unified Diff: remoting/webapp/client_plugin.js

Issue 435043002: Fix Chromoting client to choose correct OS-specific key filter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing brackets Created 6 years, 5 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 | « no previous file | remoting/webapp/client_screen.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/client_plugin.js
diff --git a/remoting/webapp/client_plugin.js b/remoting/webapp/client_plugin.js
index b281d24cd1219e7281021f687e3eb7b8a054ea4f..b7ac22a692870507895cd72f7fe669c29b3a4829 100644
--- a/remoting/webapp/client_plugin.js
+++ b/remoting/webapp/client_plugin.js
@@ -466,9 +466,9 @@ remoting.ClientPlugin.prototype.connect = function(
authenticationMethods, authenticationTag,
clientPairingId, clientPairedSecret) {
var keyFilter = '';
- if (navigator.platform.indexOf('Mac') == -1) {
+ if (remoting.platformIsMac()) {
keyFilter = 'mac';
- } else if (navigator.userAgent.match(/\bCrOS\b/)) {
+ } else if (remoting.platformIsChromeOS()) {
keyFilter = 'cros';
}
this.plugin.postMessage(JSON.stringify(
« no previous file with comments | « no previous file | remoting/webapp/client_screen.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698