Index: content/child/npapi/webplugin_delegate_impl.h |
diff --git a/content/child/npapi/webplugin_delegate_impl.h b/content/child/npapi/webplugin_delegate_impl.h |
index 91eddfa8a0ac20a993f6a93aa3936cebbaae7d2b..96d4a1e2515cf01493bfcac08c3ce578776d6592 100644 |
--- a/content/child/npapi/webplugin_delegate_impl.h |
+++ b/content/child/npapi/webplugin_delegate_impl.h |
@@ -437,10 +437,6 @@ class WebPluginDelegateImpl : public WebPluginDelegate { |
// This flag indicates whether we started tracking a user gesture message. |
bool user_gesture_message_posted_; |
- // Runnable Method Factory used to invoke the OnUserGestureEnd method |
- // asynchronously. |
- base::WeakPtrFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; |
- |
// Handle to the mouse hook installed for certain windowed plugins like |
// flash. |
HHOOK mouse_hook_; |
@@ -470,6 +466,12 @@ class WebPluginDelegateImpl : public WebPluginDelegate { |
// True if NPP_New did not return an error. |
bool creation_succeeded_; |
+#if defined(OS_WIN) |
+ // Runnable Method Factory used to invoke the OnUserGestureEnd method |
+ // asynchronously. |
+ base::WeakPtrFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; |
+#endif |
+ |
DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
}; |