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

Unified Diff: remoting/webapp/client_screen.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 | « remoting/webapp/client_plugin.js ('k') | remoting/webapp/remoting.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/client_screen.js
diff --git a/remoting/webapp/client_screen.js b/remoting/webapp/client_screen.js
index 58a2a057483f69488408bff13a5486752e0a15b0..cb54aa358610d94f66dc65ff869488d962ad183a 100644
--- a/remoting/webapp/client_screen.js
+++ b/remoting/webapp/client_screen.js
@@ -336,13 +336,13 @@ remoting.onConnected = function(clientSession) {
// TODO(jamiewalch): Use a descriptive name for the local computer, for
// example, its Chrome Sync name.
var clientName = '';
- if (navigator.platform.indexOf('Mac') != -1) {
+ if (remoting.platformIsMac()) {
clientName = 'Mac';
- } else if (navigator.platform.indexOf('Win32') != -1) {
+ } else if (remoting.platformIsWindows()) {
clientName = 'Windows';
- } else if (navigator.userAgent.match(/\bCrOS\b/)) {
+ } else if (remoting.platformIsChromeOS()) {
clientName = 'ChromeOS';
- } else if (navigator.platform.indexOf('Linux') != -1) {
+ } else if (remoting.platformIsLinux()) {
clientName = 'Linux';
} else {
console.log('Unrecognized client platform. Using navigator.platform.');
« no previous file with comments | « remoting/webapp/client_plugin.js ('k') | remoting/webapp/remoting.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698