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

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

Issue 635233004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/modules/filesystem/DOMFileSystemSync.h ('k') | Source/modules/filesystem/DirectoryEntry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/filesystem/DOMFileSystemSync.cpp
diff --git a/Source/modules/filesystem/DOMFileSystemSync.cpp b/Source/modules/filesystem/DOMFileSystemSync.cpp
index e5980ca6ab576b68c2e20ea5458a5475a70684e3..33d1fe51122e01c6833d96baec4635606b3839d0 100644
--- a/Source/modules/filesystem/DOMFileSystemSync.cpp
+++ b/Source/modules/filesystem/DOMFileSystemSync.cpp
@@ -76,7 +76,7 @@ DirectoryEntrySync* DOMFileSystemSync::root()
namespace {
-class CreateFileHelper FINAL : public AsyncFileSystemCallbacks {
+class CreateFileHelper final : public AsyncFileSystemCallbacks {
public:
class CreateFileResult : public GarbageCollectedFinalized<CreateFileResult> {
public:
@@ -107,7 +107,7 @@ public:
return adoptPtr(static_cast<AsyncFileSystemCallbacks*>(new CreateFileHelper(result, name, url, type)));
}
- virtual void didFail(int code) OVERRIDE
+ virtual void didFail(int code) override
{
m_result->m_failed = true;
m_result->m_code = code;
@@ -117,7 +117,7 @@ public:
{
}
- virtual void didCreateSnapshotFile(const FileMetadata& metadata, PassRefPtr<BlobDataHandle> snapshot) OVERRIDE
+ virtual void didCreateSnapshotFile(const FileMetadata& metadata, PassRefPtr<BlobDataHandle> snapshot) override
{
// We can't directly use the snapshot blob data handle because the content type on it hasn't been set.
// The |snapshot| param is here to provide a a chain of custody thru thread bridging that is held onto until
@@ -127,7 +127,7 @@ public:
m_result->m_file = DOMFileSystemBase::createFile(metadata, m_url, m_type, m_name);
}
- virtual bool shouldBlockUntilCompletion() const OVERRIDE
+ virtual bool shouldBlockUntilCompletion() const override
{
return true;
}
@@ -163,14 +163,14 @@ File* DOMFileSystemSync::createFile(const FileEntrySync* fileEntry, ExceptionSta
namespace {
-class ReceiveFileWriterCallback FINAL : public FileWriterBaseCallback {
+class ReceiveFileWriterCallback final : public FileWriterBaseCallback {
public:
static ReceiveFileWriterCallback* create()
{
return new ReceiveFileWriterCallback();
}
- virtual void handleEvent(FileWriterBase*) OVERRIDE
+ virtual void handleEvent(FileWriterBase*) override
{
}
@@ -180,14 +180,14 @@ private:
}
};
-class LocalErrorCallback FINAL : public ErrorCallback {
+class LocalErrorCallback final : public ErrorCallback {
public:
static LocalErrorCallback* create(FileError::ErrorCode& errorCode)
{
return new LocalErrorCallback(errorCode);
}
- virtual void handleEvent(FileError* error) OVERRIDE
+ virtual void handleEvent(FileError* error) override
{
ASSERT(error->code() != FileError::OK);
m_errorCode = error->code();
« no previous file with comments | « Source/modules/filesystem/DOMFileSystemSync.h ('k') | Source/modules/filesystem/DirectoryEntry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698