Index: webkit/glue/plugins/pepper_file_chooser.h |
diff --git a/webkit/glue/plugins/pepper_file_chooser.h b/webkit/glue/plugins/pepper_file_chooser.h |
index 664f93497898268943ac43ba21a5cb14d23943c8..9d3d9e970c1fc3ed4d2f9e1d4320a7cebd8b35ee 100644 |
--- a/webkit/glue/plugins/pepper_file_chooser.h |
+++ b/webkit/glue/plugins/pepper_file_chooser.h |
@@ -29,7 +29,7 @@ class FileChooser : public Resource { |
static const PPB_FileChooser_Dev* GetInterface(); |
// Resource overrides. |
- FileChooser* AsFileChooser() { return this; } |
+ virtual FileChooser* AsFileChooser(); |
// Stores the list of selected files. |
void StoreChosenFiles(const std::vector<std::string>& files); |