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

Unified Diff: Source/modules/filesystem/SyncCallbackHelper.h

Issue 17761003: Remove FileException (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix compile warning Created 7 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: Source/modules/filesystem/SyncCallbackHelper.h
diff --git a/Source/modules/filesystem/SyncCallbackHelper.h b/Source/modules/filesystem/SyncCallbackHelper.h
index 6fb1c98eb134eeb6e6e0ec95967f057493f30299..704ce82ad6d08117cdffb822a17c3dc25b98e510 100644
--- a/Source/modules/filesystem/SyncCallbackHelper.h
+++ b/Source/modules/filesystem/SyncCallbackHelper.h
@@ -31,8 +31,8 @@
#ifndef SyncCallbackHelper_h
#define SyncCallbackHelper_h
+#include "core/dom/ExceptionCode.h"
#include "core/fileapi/FileError.h"
-#include "core/fileapi/FileException.h"
#include "core/html/VoidCallback.h"
#include "modules/filesystem/DirectoryEntry.h"
#include "modules/filesystem/EntriesCallback.h"
@@ -75,7 +75,7 @@ public:
if (m_observer) {
while (!m_completed) {
if (!m_observer->waitForOperationToComplete()) {
- m_exceptionCode = FileException::ABORT_ERR;
+ m_exceptionCode = FSAbortError;
break;
}
}
@@ -97,7 +97,7 @@ private:
virtual bool handleEvent()
{
- m_helper->setError(0);
+ m_helper->setError(FileError::OK);
return true;
}
@@ -140,9 +140,9 @@ private:
friend class SuccessCallbackImpl;
friend class ErrorCallbackImpl;
- void setError(int code)
+ void setError(FileError::ErrorCode code)
{
- m_exceptionCode = FileException::ErrorCodeToExceptionCode(code);
+ m_exceptionCode = FileError::ErrorCodeToExceptionCode(code);
m_completed = true;
}
« no previous file with comments | « Source/modules/filesystem/FileWriterSync.cpp ('k') | Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698