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