commit | 5a09d7a8352adfaa51053c4f5ea6a056a59d3446 | [log] [tgz] |
---|---|---|
author | Tim van der Lippe <[email protected]> | Thu Jan 23 13:41:29 2020 |
committer | Commit Bot <[email protected]> | Thu Jan 23 14:15:00 2020 |
tree | 1c5fa99eb469c96f8ee41528fee7bde4d345c2bb | |
parent | 0c42b5bb12af06e0c89ef4e09f04e7573e5d521f [diff] [blame] |
Migrate protocol/ to import cross-module Bug: 1006759 Change-Id: Idab6f7a909932a1ad37b9bbb317e1cb3ff567814 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2016750 Reviewed-by: Paul Lewis <[email protected]> Commit-Queue: Tim van der Lippe <[email protected]>
diff --git a/front_end/protocol/NodeURL.js b/front_end/protocol/NodeURL.js index 2492b6f..d38d8f7 100644 --- a/front_end/protocol/NodeURL.js +++ b/front_end/protocol/NodeURL.js
@@ -2,6 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +import * as Common from '../common/common.js'; + +import * as Host from '../host/host.js'; + export class NodeURL { /** * @param {!Object} object @@ -14,8 +18,8 @@ * @param {string} path */ function process(object, path) { - if (object.url && NodeURL._isPlatformPath(object.url, Host.isWin())) { - object.url = Common.ParsedURL.platformPathToURL(object.url); + if (object.url && NodeURL._isPlatformPath(object.url, Host.Platform.isWin())) { + object.url = Common.ParsedURL.ParsedURL.platformPathToURL(object.url); } for (const entry of Object.entries(object)) { const key = entry[0];