Commit 694dfbdf authored by tedchoc@chromium.org's avatar tedchoc@chromium.org

Fix device type icons for "other devices" tab on Android.

This value used to be defined on the window object, but has since
moved to the "client".

BUG=163004


Review URL: https://chromiumcodereview.appspot.com/11348336

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170860 0039d316-1c4b-4281-b951-d872f2087c98
parent 109d41a9
......@@ -1743,19 +1743,19 @@ cr.define('ntp', function() {
clientName = client.name;
var iconStyle;
if (windows[0].deviceType == 'win' ||
windows[0].deviceType == 'macosx' ||
windows[0].deviceType == 'linux' ||
windows[0].deviceType == 'chromeos' ||
windows[0].deviceType == 'other') {
var deviceType = client.deviceType;
if (deviceType == 'win' ||
deviceType == 'macosx' ||
deviceType == 'linux' ||
deviceType == 'chromeos' ||
deviceType == 'other') {
iconStyle = 'laptop';
} else if (windows[0].deviceType == 'phone') {
} else if (deviceType == 'phone') {
iconStyle = 'phone';
} else if (windows[0].deviceType == 'tablet') {
} else if (deviceType == 'tablet') {
iconStyle = 'tablet';
} else {
console.error(
'Unknown sync device type found: ', windows[0].deviceType);
console.error('Unknown sync device type found: ', deviceType);
iconStyle = 'laptop';
}
var headerList = [{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment