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

Unified Diff: third_party/WebKit/Source/modules/filesystem/FileSystemCallbacks.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/FileSystemCallbacks.cpp
diff --git a/third_party/WebKit/Source/modules/filesystem/FileSystemCallbacks.cpp b/third_party/WebKit/Source/modules/filesystem/FileSystemCallbacks.cpp
index 34c58f2c8e3597a53bcd0087ce3f69c5cf225edf..ace03fc4a95e45a3ecad83b3ab615a6a7354af22 100644
--- a/third_party/WebKit/Source/modules/filesystem/FileSystemCallbacks.cpp
+++ b/third_party/WebKit/Source/modules/filesystem/FileSystemCallbacks.cpp
@@ -74,7 +74,7 @@ FileSystemCallbacksBase::~FileSystemCallbacksBase()
void FileSystemCallbacksBase::didFail(int code)
{
if (m_errorCallback)
- handleEventOrScheduleCallback(m_errorCallback.release(), FileError::create(static_cast<FileError::ErrorCode>(code)));
+ handleEventOrScheduleCallback(m_errorCallback.release(), static_cast<FileError::ErrorCode>(code));
}
bool FileSystemCallbacksBase::shouldScheduleCallback() const
@@ -83,7 +83,7 @@ bool FileSystemCallbacksBase::shouldScheduleCallback() const
}
template <typename CB, typename CBArg>
-void FileSystemCallbacksBase::handleEventOrScheduleCallback(CB* callback, CBArg* arg)
+void FileSystemCallbacksBase::handleEventOrScheduleCallback(CB* callback, CBArg arg)
{
ASSERT(callback);
if (shouldScheduleCallback())
@@ -203,7 +203,7 @@ void ResolveURICallbacks::didResolveURL(const String& name, const KURL& rootURL,
String absolutePath;
if (!DOMFileSystemBase::pathToAbsolutePath(type, root, filePath, absolutePath)) {
- handleEventOrScheduleCallback(m_errorCallback.release(), FileError::create(FileError::INVALID_MODIFICATION_ERR));
+ handleEventOrScheduleCallback(m_errorCallback.release(), FileError::INVALID_MODIFICATION_ERR);
return;
}

Powered by Google App Engine
This is Rietveld 408576698