Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/emulation/EmulatedDevices.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/EmulatedDevices.js b/third_party/WebKit/Source/devtools/front_end/emulation/EmulatedDevices.js |
| index 7369d659813e05f41259b32b99b7f3dacae5fbe6..3e9585a65112186acdd8b4dd49e5e84f66825cfd 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/emulation/EmulatedDevices.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/emulation/EmulatedDevices.js |
| @@ -140,6 +140,7 @@ WebInspector.EmulatedDevice.fromJSONV1 = function(json) |
| result.title = /** @type {string} */ (parseValue(json, "title", "string")); |
| result.type = /** @type {string} */ (parseValue(json, "type", "string")); |
| result.userAgent = /** @type {string} */ (parseValue(json, "user-agent", "string")); |
|
pfeldman
2016/09/15 21:44:07
use intermediate variable.
luoe
2016/09/15 23:18:08
Done.
|
| + result.userAgent = WebInspector.BrowserVersionInfo.patchUserAgentWithChromeVersion(result.userAgent); |
| var capabilities = parseValue(json, "capabilities", "object", []); |
| if (!Array.isArray(capabilities)) |