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

Unified Diff: Source/devtools/front_end/timeline/TimelineModelImpl.js

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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: Source/devtools/front_end/timeline/TimelineModelImpl.js
diff --git a/Source/devtools/front_end/timeline/TimelineModelImpl.js b/Source/devtools/front_end/timeline/TimelineModelImpl.js
index d44ae4a323b915d1dfd2decc791b936adcf42599..68b69a282c5b89e822f0d6c8ab7a0231f2318250 100644
--- a/Source/devtools/front_end/timeline/TimelineModelImpl.js
+++ b/Source/devtools/front_end/timeline/TimelineModelImpl.js
@@ -565,7 +565,7 @@ WebInspector.TimelineModelLoader.prototype = {
try {
items = /** @type {!Array.<!TimelineAgent.TimelineEvent>} */ (JSON.parse(json));
} catch (e) {
- WebInspector.console.addErrorMessage("Malformed timeline data.", true);
+ WebInspector.console.error("Malformed timeline data.");
this._model.reset();
this._reader.cancel();
this._progress.done();
@@ -641,15 +641,15 @@ WebInspector.TimelineModelLoadFromFileDelegate.prototype = {
this._model.reset();
switch (event.target.error.code) {
case FileError.NOT_FOUND_ERR:
- WebInspector.console.addErrorMessage(WebInspector.UIString("File \"%s\" not found.", reader.fileName()), true);
+ WebInspector.console.error(WebInspector.UIString("File \"%s\" not found.", reader.fileName()));
break;
case FileError.NOT_READABLE_ERR:
- WebInspector.console.addErrorMessage(WebInspector.UIString("File \"%s\" is not readable", reader.fileName()), true);
+ WebInspector.console.error(WebInspector.UIString("File \"%s\" is not readable", reader.fileName()));
break;
case FileError.ABORT_ERR:
break;
default:
- WebInspector.console.addErrorMessage(WebInspector.UIString("An error occurred while reading the file \"%s\"", reader.fileName()), true);
+ WebInspector.console.error(WebInspector.UIString("An error occurred while reading the file \"%s\"", reader.fileName()));
}
}
}
« no previous file with comments | « Source/devtools/front_end/sources/UISourceCodeFrame.js ('k') | Source/devtools/front_end/timeline/TimelinePanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698