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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/FrontendWebSocketAPI.js

Issue 1564113003: DevTools: merge uisourcecode's url-alike members. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 11 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
Index: third_party/WebKit/Source/devtools/front_end/main/FrontendWebSocketAPI.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/FrontendWebSocketAPI.js b/third_party/WebKit/Source/devtools/front_end/main/FrontendWebSocketAPI.js
index 322da62e74f7b888cf900afcc105e26c16e12622..e67bcf237c0a981899d57e6ac4bb47185e0544a3 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/FrontendWebSocketAPI.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/FrontendWebSocketAPI.js
@@ -38,7 +38,7 @@ WebInspector.FrontendWebSocketAPI.prototype = {
{
var uiSourceCode = WebInspector.networkMapping.uiSourceCodeForURLForAnyTarget(url);
if (uiSourceCode)
- url = uiSourceCode.originURL();
+ url = uiSourceCode.url();
if (url.startsWith("file://")) {
var file = url.substring(7);
this._issueFrontendAPINotification("Frontend.revealLocation", { file: file, line: lineNumber });
@@ -69,7 +69,7 @@ WebInspector.FrontendWebSocketAPI.prototype = {
var file = params["file"];
var buffer = params["buffer"];
var saved = params["saved"];
- var uiSourceCode = WebInspector.workspace.filesystemUISourceCode("file://" + file);
+ var uiSourceCode = WebInspector.workspace.uiSourceCodeForURL("file://" + file);
if (uiSourceCode) {
if (buffer !== uiSourceCode.workingCopy())
uiSourceCode.setWorkingCopy(buffer);
@@ -93,7 +93,7 @@ WebInspector.FrontendWebSocketAPI.prototype = {
if (this._dispatchingFrontendMessage)
return;
var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (event.data["uiSourceCode"]);
- var url = uiSourceCode.originURL();
+ var url = uiSourceCode.url();
if (url.startsWith("file://"))
url = url.substring(7);
var params = { file: url, buffer: uiSourceCode.workingCopy() };

Powered by Google App Engine
This is Rietveld 408576698