Index: chrome/browser/ui/webui/signin/inline_login_handler_impl.h |
diff --git a/chrome/browser/ui/webui/signin/inline_login_handler_impl.h b/chrome/browser/ui/webui/signin/inline_login_handler_impl.h |
index cd7e2a159efeecf9c15975ca50cd6803fb43786f..68ba86e5fca9c6ddbd000947d840b69dfa7e5721 100644 |
--- a/chrome/browser/ui/webui/signin/inline_login_handler_impl.h |
+++ b/chrome/browser/ui/webui/signin/inline_login_handler_impl.h |
@@ -11,13 +11,15 @@ |
#include "base/memory/weak_ptr.h" |
#include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" |
#include "chrome/browser/ui/webui/signin/inline_login_handler.h" |
+#include "content/public/browser/web_contents_delegate.h" |
class GaiaAuthFetcher; |
// Implementation for the inline login WebUI handler on desktop Chrome. Once |
// CrOS migrates to the same webview approach as desktop Chrome, much of the |
// code in this class should move to its base class |InlineLoginHandler|. |
-class InlineLoginHandlerImpl : public InlineLoginHandler { |
+class InlineLoginHandlerImpl : public InlineLoginHandler, |
+ public content::WebContentsDelegate { |
public: |
InlineLoginHandlerImpl(); |
virtual ~InlineLoginHandlerImpl(); |
@@ -38,6 +40,10 @@ class InlineLoginHandlerImpl : public InlineLoginHandler { |
virtual void SetExtraInitParams(base::DictionaryValue& params) OVERRIDE; |
virtual void CompleteLogin(const base::ListValue* args) OVERRIDE; |
+ // Overridden from content::WebContentsDelegate. |
+ virtual bool HandleContextMenu( |
xiyuan
2014/06/12 18:02:04
Move this to InlineLoginHandler to fix ChromeOS di
guohui
2014/06/12 20:15:30
Done.
|
+ const content::ContextMenuParams& params) OVERRIDE; |
+ |
base::WeakPtrFactory<InlineLoginHandlerImpl> weak_factory_; |
std::string email_; |
std::string password_; |