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

Unified Diff: third_party/WebKit/Source/modules/filesystem/DOMFileSystemSync.cpp

Issue 2040563002: Remove FileError interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fe-dep
Patch Set: Rebased, and closure annotations 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/modules/filesystem/DOMFileSystemSync.cpp
diff --git a/third_party/WebKit/Source/modules/filesystem/DOMFileSystemSync.cpp b/third_party/WebKit/Source/modules/filesystem/DOMFileSystemSync.cpp
index e57da4dc304375ac792950332294b35ecc4c4b28..af9ea20575bf7abe6374ba2c686e4f0b194d9192 100644
--- a/third_party/WebKit/Source/modules/filesystem/DOMFileSystemSync.cpp
+++ b/third_party/WebKit/Source/modules/filesystem/DOMFileSystemSync.cpp
@@ -65,7 +65,7 @@ DOMFileSystemSync::~DOMFileSystemSync()
{
}
-void DOMFileSystemSync::reportError(ErrorCallback* errorCallback, FileError* fileError)
+void DOMFileSystemSync::reportError(ErrorCallback* errorCallback, FileError::ErrorCode fileError)
{
errorCallback->handleEvent(fileError);
}
@@ -188,10 +188,15 @@ public:
return new LocalErrorCallback(errorCode);
}
- void handleEvent(FileError* error) override
+ void handleEvent(DOMException* error) override
{
- ASSERT(error->code() != FileError::OK);
- m_errorCode = error->code();
+ NOTREACHED();
+ }
+
+ void handleEvent(FileError::ErrorCode error) override
+ {
+ DCHECK_NE(error, FileError::OK);
+ m_errorCode = error;
}
private:

Powered by Google App Engine
This is Rietveld 408576698