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

Unified Diff: LayoutTests/inspector/sources/debugger/breakpoint-manager.js

Issue 464963002: DevTools: Make UISourceCode Target-agnostic (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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: LayoutTests/inspector/sources/debugger/breakpoint-manager.js
diff --git a/LayoutTests/inspector/sources/debugger/breakpoint-manager.js b/LayoutTests/inspector/sources/debugger/breakpoint-manager.js
index 431c3969e024caefe0ca9623cd14f003db39e7f6..00b28f53234ae5e75046ca1a7b14ef3e17e10381 100644
--- a/LayoutTests/inspector/sources/debugger/breakpoint-manager.js
+++ b/LayoutTests/inspector/sources/debugger/breakpoint-manager.js
@@ -226,7 +226,7 @@ InspectorTest.addScript = function(target, breakpointManager, url)
for (var i = 0; i < uiSourceCodes.length; ++i) {
var uiSourceCode = uiSourceCodes[i];
if (uiSourceCode.url === url) {
- uiSourceCode.setSourceMappingForTarget(target, breakpointManager.defaultMapping);
+ breakpointManager._debuggerWorkspaceBinding.setSourceMapping(target, uiSourceCode, breakpointManager.defaultMapping);
InspectorTest.uiSourceCodes[url] = uiSourceCode;
return uiSourceCode;
}
@@ -243,7 +243,7 @@ InspectorTest.addUISourceCode = function(target, breakpointManager, url, doNotSe
var uiSourceCode = binding._networkWorkspaceBinding.addFileForURL(url, contentProvider);
InspectorTest.uiSourceCodes[url] = uiSourceCode;
if (!doNotSetSourceMapping) {
- uiSourceCode.setSourceMappingForTarget(target, breakpointManager.defaultMapping);
+ breakpointManager._debuggerWorkspaceBinding.setSourceMapping(target, uiSourceCode, breakpointManager.defaultMapping);
breakpointManager._debuggerWorkspaceBinding.updateLocations(target.debuggerModel.scriptForId(url));
}
return uiSourceCode;

Powered by Google App Engine
This is Rietveld 408576698