Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Unified Diff: components/renderer_context_menu/context_menu_content_type.cc

Issue 1142923002: Add a "Save password" item to the context menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/renderer_context_menu/context_menu_content_type.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/renderer_context_menu/context_menu_content_type.cc
diff --git a/components/renderer_context_menu/context_menu_content_type.cc b/components/renderer_context_menu/context_menu_content_type.cc
index 7f33b00ab92deec7591c9f90d23ddcba6e96d6cf..704c13b9ddb4cd1a0583c48564f9081a75d6fced 100644
--- a/components/renderer_context_menu/context_menu_content_type.cc
+++ b/components/renderer_context_menu/context_menu_content_type.cc
@@ -161,6 +161,10 @@ bool ContextMenuContentType::SupportsGroupInternal(int group) {
return false;
#endif
+ case ITEM_GROUP_PASSWORD:
+ return params_.input_field_type ==
+ blink::WebContextMenuData::InputFieldTypePassword;
+
default:
NOTREACHED();
return false;
« no previous file with comments | « components/renderer_context_menu/context_menu_content_type.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698