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

Unified Diff: third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html

Issue 2851913002: [DevTools] Do not expose agents on Target
Patch Set: storage and tests.js Created 3 years, 8 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/LayoutTests/inspector/inspector-backend-commands.html
diff --git a/third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html b/third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html
index 4ca9cd3e8699351504b00d40bbd396fc06d63d74..88a8ad268ac2d305e6b4b2008a764cf00c9b1357 100644
--- a/third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html
+++ b/third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html
@@ -81,7 +81,7 @@ function test()
return Array.prototype.slice.call(arguments);
}
- var agent = SDK.targetManager.mainTarget().profilerAgent();
+ var agent = SDK.targetManager.mainTarget()._dispatcher.profilerAgent();
Promise.resolve()
.then(function() { return processResult("commandError", agent.commandError({"message": "this is the error message"}, defaultHandler)); }) // Error: error in the protocol response
.then(function() { return processResult("commandArgs0", agent.commandArgs0(defaultHandler)); })

Powered by Google App Engine
This is Rietveld 408576698