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

Unified Diff: Source/platform/testing/ArenaTestHelpers.h

Issue 131003004: Update platform classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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/platform/scroll/Scrollbar.h ('k') | Source/platform/text/LineEnding.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/testing/ArenaTestHelpers.h
diff --git a/Source/platform/testing/ArenaTestHelpers.h b/Source/platform/testing/ArenaTestHelpers.h
index 64cfa36ff8f2412296f2eb6f790d098cf2447957..a13fa59c06ded12f8a1ca42f78f737027b9fc881 100644
--- a/Source/platform/testing/ArenaTestHelpers.h
+++ b/Source/platform/testing/ArenaTestHelpers.h
@@ -37,21 +37,21 @@ namespace ArenaTestHelpers {
// An allocator for the PODArena which tracks the regions which have
// been allocated.
-class TrackedAllocator : public PODArena::FastMallocAllocator {
+class TrackedAllocator FINAL : public PODArena::FastMallocAllocator {
public:
static PassRefPtr<TrackedAllocator> create()
{
return adoptRef(new TrackedAllocator);
}
- virtual void* allocate(size_t size)
+ virtual void* allocate(size_t size) OVERRIDE
{
void* result = PODArena::FastMallocAllocator::allocate(size);
m_allocatedRegions.append(result);
return result;
}
- virtual void free(void* ptr)
+ virtual void free(void* ptr) OVERRIDE
{
size_t slot = m_allocatedRegions.find(ptr);
ASSERT_NE(slot, kNotFound);
« no previous file with comments | « Source/platform/scroll/Scrollbar.h ('k') | Source/platform/text/LineEnding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698