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

Unified Diff: third_party/WebKit/Source/devtools/front_end/snippets/ScriptSnippetModel.js

Issue 2748023006: [DevTools] Make ConsoleModel not inherit from SDKModel (Closed)
Patch Set: stray change Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/snippets/ScriptSnippetModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/snippets/ScriptSnippetModel.js b/third_party/WebKit/Source/devtools/front_end/snippets/ScriptSnippetModel.js
index ca8b6ca1e1208b4c56cc6a066c2f3dd6270ed696..339671f568900069926b2163b4688ee08621e357 100644
--- a/third_party/WebKit/Source/devtools/front_end/snippets/ScriptSnippetModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/snippets/ScriptSnippetModel.js
@@ -278,7 +278,7 @@ Snippets.ScriptSnippetModel = class extends Common.Object {
var consoleMessage = new SDK.ConsoleMessage(
target, SDK.ConsoleMessage.MessageSource.JS, SDK.ConsoleMessage.MessageLevel.Info, '', undefined, sourceURL,
undefined, undefined, undefined, [result], undefined, undefined, undefined, scriptId);
- target.consoleModel.addMessage(consoleMessage);
+ SDK.multitargetConsoleModel.addMessage(consoleMessage);
}
/**
@@ -287,7 +287,7 @@ Snippets.ScriptSnippetModel = class extends Common.Object {
* @param {?string=} sourceURL
*/
_printRunOrCompileScriptResultFailure(target, exceptionDetails, sourceURL) {
- target.consoleModel.addMessage(
+ SDK.multitargetConsoleModel.addMessage(
SDK.ConsoleMessage.fromException(target, exceptionDetails, undefined, undefined, sourceURL || undefined));
}
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698