Index: webkit/glue/plugins/pepper_scrollbar.h |
diff --git a/webkit/glue/plugins/pepper_scrollbar.h b/webkit/glue/plugins/pepper_scrollbar.h |
index c444bb3bb09fd13ff38ee83bf381d154a9be5d37..817666e495ab55ec161cbf2da9094d69d27d9510 100644 |
--- a/webkit/glue/plugins/pepper_scrollbar.h |
+++ b/webkit/glue/plugins/pepper_scrollbar.h |
@@ -27,7 +27,7 @@ class Scrollbar : public Widget, public WebKit::WebScrollbarClient { |
static const PPB_Scrollbar_Dev* GetInterface(); |
// Resource overrides. |
- Scrollbar* AsScrollbar() { return this; } |
+ virtual Scrollbar* AsScrollbar(); |
// PPB_Scrollbar implementation. |
uint32_t GetValue(); |