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

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: 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
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..98571b60d26e6716eaa6ff798f2522354461cdae 100644
--- a/components/renderer_context_menu/context_menu_content_type.cc
+++ b/components/renderer_context_menu/context_menu_content_type.cc
@@ -161,6 +161,9 @@ bool ContextMenuContentType::SupportsGroupInternal(int group) {
return false;
#endif
+ case ITEM_GROUP_PASSWORD:
+ return params_.is_password_field;
+
default:
NOTREACHED();
return false;

Powered by Google App Engine
This is Rietveld 408576698