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

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

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/WorkerGlobalScopeFileSystem.cpp
diff --git a/third_party/WebKit/Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp b/third_party/WebKit/Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp
index 56687bef815a9c8923db0a739dba581e70816f03..f3cfb229a70af8e41c07f103f56f5d66b394e2ae 100644
--- a/third_party/WebKit/Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp
+++ b/third_party/WebKit/Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp
@@ -49,13 +49,13 @@ void WorkerGlobalScopeFileSystem::webkitRequestFileSystem(WorkerGlobalScope& wor
{
ExecutionContext* secureContext = worker.getExecutionContext();
if (!secureContext->getSecurityOrigin()->canAccessFileSystem()) {
- DOMFileSystem::reportError(&worker, ScriptErrorCallback::wrap(errorCallback), FileError::SECURITY_ERR);
+ DOMFileSystem::reportError(&worker, ScriptErrorCallback::wrap(errorCallback), FileError::kSecurityErr);
return;
}
FileSystemType fileSystemType = static_cast<FileSystemType>(type);
if (!DOMFileSystemBase::isValidType(fileSystemType)) {
- DOMFileSystem::reportError(&worker, ScriptErrorCallback::wrap(errorCallback), FileError::INVALID_MODIFICATION_ERR);
+ DOMFileSystem::reportError(&worker, ScriptErrorCallback::wrap(errorCallback), FileError::kInvalidModificationErr);
return;
}
@@ -72,7 +72,7 @@ DOMFileSystemSync* WorkerGlobalScopeFileSystem::webkitRequestFileSystemSync(Work
FileSystemType fileSystemType = static_cast<FileSystemType>(type);
if (!DOMFileSystemBase::isValidType(fileSystemType)) {
- exceptionState.throwDOMException(InvalidModificationError, "the type must be TEMPORARY or PERSISTENT.");
+ exceptionState.throwDOMException(InvalidModificationError, "the type must be kTemporary or kPersistent.");
return 0;
}
@@ -89,12 +89,12 @@ void WorkerGlobalScopeFileSystem::webkitResolveLocalFileSystemURL(WorkerGlobalSc
KURL completedURL = worker.completeURL(url);
ExecutionContext* secureContext = worker.getExecutionContext();
if (!secureContext->getSecurityOrigin()->canAccessFileSystem() || !secureContext->getSecurityOrigin()->canRequest(completedURL)) {
- DOMFileSystem::reportError(&worker, ScriptErrorCallback::wrap(errorCallback), FileError::SECURITY_ERR);
+ DOMFileSystem::reportError(&worker, ScriptErrorCallback::wrap(errorCallback), FileError::kSecurityErr);
return;
}
if (!completedURL.isValid()) {
- DOMFileSystem::reportError(&worker, ScriptErrorCallback::wrap(errorCallback), FileError::ENCODING_ERR);
+ DOMFileSystem::reportError(&worker, ScriptErrorCallback::wrap(errorCallback), FileError::kEncodingErr);
return;
}
@@ -124,7 +124,7 @@ EntrySync* WorkerGlobalScopeFileSystem::webkitResolveLocalFileSystemSyncURL(Work
return resolveURLHelper->getResult(exceptionState);
}
-static_assert(static_cast<int>(WorkerGlobalScopeFileSystem::TEMPORARY) == static_cast<int>(FileSystemTypeTemporary), "WorkerGlobalScopeFileSystem::TEMPORARY should match FileSystemTypeTemporary");
-static_assert(static_cast<int>(WorkerGlobalScopeFileSystem::PERSISTENT) == static_cast<int>(FileSystemTypePersistent), "WorkerGlobalScopeFileSystem::PERSISTENT should match FileSystemTypePersistent");
+static_assert(static_cast<int>(WorkerGlobalScopeFileSystem::kTemporary) == static_cast<int>(FileSystemTypeTemporary), "WorkerGlobalScopeFileSystem::kTemporary should match FileSystemTypeTemporary");
+static_assert(static_cast<int>(WorkerGlobalScopeFileSystem::kPersistent) == static_cast<int>(FileSystemTypePersistent), "WorkerGlobalScopeFileSystem::kPersistent should match FileSystemTypePersistent");
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698