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; |
} |