Index: webkit/glue/plugins/pepper_directory_reader.h |
diff --git a/webkit/glue/plugins/pepper_directory_reader.h b/webkit/glue/plugins/pepper_directory_reader.h |
index 38496bb836a0f336b99b342609e9f9837a572b0e..3f415e2a57c4529f80420546a07e7fa8cce546b1 100644 |
--- a/webkit/glue/plugins/pepper_directory_reader.h |
+++ b/webkit/glue/plugins/pepper_directory_reader.h |
@@ -28,7 +28,7 @@ class DirectoryReader : public Resource { |
static const PPB_DirectoryReader_Dev* GetInterface(); |
// Resource overrides. |
- DirectoryReader* AsDirectoryReader() { return this; } |
+ virtual DirectoryReader* AsDirectoryReader(); |
// PPB_DirectoryReader implementation. |
int32_t GetNextEntry(PP_DirectoryEntry_Dev* entry, |