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

Unified Diff: Source/modules/filesystem/EntrySync.cpp

Issue 72363002: Rename es => exceptionState in other than bindings/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Retry Created 7 years, 1 month 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
« no previous file with comments | « Source/modules/filesystem/DirectoryReaderSync.cpp ('k') | Source/modules/filesystem/FileEntrySync.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/filesystem/EntrySync.cpp
diff --git a/Source/modules/filesystem/EntrySync.cpp b/Source/modules/filesystem/EntrySync.cpp
index 73c31aa853de1d8454173a31e169ee259c787456..586503706ea9a9d6dc5155e7ab3fa438032b60d1 100644
--- a/Source/modules/filesystem/EntrySync.cpp
+++ b/Source/modules/filesystem/EntrySync.cpp
@@ -50,44 +50,44 @@ PassRefPtr<EntrySync> EntrySync::create(EntryBase* entry)
return adoptRef(new DirectoryEntrySync(entry->m_fileSystem, entry->m_fullPath));
}
-PassRefPtr<Metadata> EntrySync::getMetadata(ExceptionState& es)
+PassRefPtr<Metadata> EntrySync::getMetadata(ExceptionState& exceptionState)
{
MetadataSyncCallbackHelper helper;
if (!m_fileSystem->getMetadata(this, helper.successCallback(), helper.errorCallback(), DOMFileSystemBase::Synchronous)) {
- es.throwDOMException(InvalidModificationError, ExceptionMessages::failedToExecute("getMetadata", "EntrySync"));
+ exceptionState.throwDOMException(InvalidModificationError, ExceptionMessages::failedToExecute("getMetadata", "EntrySync"));
return 0;
}
- return helper.getResult(es);
+ return helper.getResult(exceptionState);
}
-PassRefPtr<EntrySync> EntrySync::moveTo(PassRefPtr<DirectoryEntrySync> parent, const String& name, ExceptionState& es) const
+PassRefPtr<EntrySync> EntrySync::moveTo(PassRefPtr<DirectoryEntrySync> parent, const String& name, ExceptionState& exceptionState) const
{
EntrySyncCallbackHelper helper;
if (!m_fileSystem->move(this, parent.get(), name, helper.successCallback(), helper.errorCallback(), DOMFileSystemBase::Synchronous)) {
- es.throwDOMException(InvalidModificationError, ExceptionMessages::failedToExecute("moveTo", "EntrySync"));
+ exceptionState.throwDOMException(InvalidModificationError, ExceptionMessages::failedToExecute("moveTo", "EntrySync"));
return 0;
}
- return helper.getResult(es);
+ return helper.getResult(exceptionState);
}
-PassRefPtr<EntrySync> EntrySync::copyTo(PassRefPtr<DirectoryEntrySync> parent, const String& name, ExceptionState& es) const
+PassRefPtr<EntrySync> EntrySync::copyTo(PassRefPtr<DirectoryEntrySync> parent, const String& name, ExceptionState& exceptionState) const
{
EntrySyncCallbackHelper helper;
if (!m_fileSystem->copy(this, parent.get(), name, helper.successCallback(), helper.errorCallback(), DOMFileSystemBase::Synchronous)) {
- es.throwDOMException(InvalidModificationError, ExceptionMessages::failedToExecute("copyTo", "EntrySync"));
+ exceptionState.throwDOMException(InvalidModificationError, ExceptionMessages::failedToExecute("copyTo", "EntrySync"));
return 0;
}
- return helper.getResult(es);
+ return helper.getResult(exceptionState);
}
-void EntrySync::remove(ExceptionState& es) const
+void EntrySync::remove(ExceptionState& exceptionState) const
{
VoidSyncCallbackHelper helper;
if (!m_fileSystem->remove(this, helper.successCallback(), helper.errorCallback(), DOMFileSystemBase::Synchronous)) {
- es.throwDOMException(InvalidModificationError, ExceptionMessages::failedToExecute("remove", "EntrySync"));
+ exceptionState.throwDOMException(InvalidModificationError, ExceptionMessages::failedToExecute("remove", "EntrySync"));
return;
}
- helper.getResult(es);
+ helper.getResult(exceptionState);
}
PassRefPtr<EntrySync> EntrySync::getParent() const
« no previous file with comments | « Source/modules/filesystem/DirectoryReaderSync.cpp ('k') | Source/modules/filesystem/FileEntrySync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698