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

Unified Diff: third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystem.js

Issue 2040563002: Remove FileError interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fe-dep
Patch Set: Devtools/test updates Created 4 years, 6 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/workspace/IsolatedFileSystem.js
diff --git a/third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystem.js b/third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystem.js
index c3983ea4d269ff4848ec841f70ef86d88cf7a7bf..74e2a6b1c660b28038875108c811a3c62735f24d 100644
--- a/third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystem.js
+++ b/third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystem.js
@@ -96,7 +96,7 @@ WebInspector.IsolatedFileSystem.create = function(manager, path, embedderPath, n
}
/**
- * @param {!FileError} error
+ * @param {!DOMException} error
* @return {string}
*/
WebInspector.IsolatedFileSystem.errorMessage = function(error)
@@ -216,7 +216,7 @@ WebInspector.IsolatedFileSystem.prototype = {
*/
function fileCreationError(error)
{
- if (error.code === FileError.INVALID_MODIFICATION_ERR) {
+ if (error.name === 'InvalidModificationError') {
dirEntryLoaded.call(this, dirEntry);
return;
}
@@ -262,7 +262,7 @@ WebInspector.IsolatedFileSystem.prototype = {
}
/**
- * @param {!FileError} error
+ * @param {!DOMException} error
* @this {WebInspector.IsolatedFileSystem}
*/
function errorHandler(error)
@@ -322,7 +322,7 @@ WebInspector.IsolatedFileSystem.prototype = {
*/
function errorHandler(error)
{
- if (error.code === FileError.NOT_FOUND_ERR) {
+ if (error.name === 'NotFoundError') {
callback(null);
return;
}
@@ -436,7 +436,7 @@ WebInspector.IsolatedFileSystem.prototype = {
*/
function newFileEntryLoadErrorHandler(error)
{
- if (error.code !== FileError.NOT_FOUND_ERR) {
+ if (error.name !== 'NotFoundError') {
callback(false);
return;
}

Powered by Google App Engine
This is Rietveld 408576698