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

Unified Diff: components/autofill/content/common/autofill_messages.h

Issue 223133003: Allow deleting autofill password suggestions on Shift+Delete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bug fixed Created 6 years, 8 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/autofill/content/common/autofill_messages.h
diff --git a/components/autofill/content/common/autofill_messages.h b/components/autofill/content/common/autofill_messages.h
index 9b01b5d2a61aa6c6da003472065b0c4e092c4d6a..ebfc7aa1e955ac49238b5e1ab6b3d81ec77afc96 100644
--- a/components/autofill/content/common/autofill_messages.h
+++ b/components/autofill/content/common/autofill_messages.h
@@ -5,6 +5,7 @@
// Multiply-included message file, hence no include guard.
#include <string>
+#include <vector>
Ilya Sherman 2014/04/09 06:33:05 Why did you add this?
vabr (Chromium) 2014/04/09 11:17:13 I asked Riadh to include that at a point when one
Ilya Sherman 2014/04/09 21:42:20 If this is fixing up IWYU violations in existing c
vabr (Chromium) 2014/04/10 13:45:17 I agree. Riadh, please disregard my previous reque
#include "base/time/time.h"
#include "components/autofill/content/common/autofill_param_traits_macros.h"
@@ -159,6 +160,12 @@ IPC_MESSAGE_ROUTED2(AutofillMsg_RequestAutocompleteResult,
IPC_MESSAGE_ROUTED1(AutofillMsg_AccountCreationFormsDetected,
std::vector<autofill::FormData> /* forms */)
+// Instruct the renderer that a password suggestion has to be removed.
+// The renderer is going to clean the suggestion from the ui and
+// then ask the password manager to remove the password from the store.
+IPC_MESSAGE_ROUTED1(AutofillMsg_RemoveSavedPassword,
+ base::string16 /*user name to be removed */)
Ilya Sherman 2014/04/09 06:33:05 How/why does the renderer deal with UI? Patrick D
rchtara 2014/04/09 13:52:43 I'm not sure how it could be possible to not send
Ilya Sherman 2014/04/09 21:42:20 Please discuss this with Patrick Dubroy. My sugge
vabr (Chromium) 2014/04/10 13:45:17 Thanks, Ilya, for making us aware of the coming ch
Patrick Dubroy 2014/04/29 12:47:06 The browser renders the pop-up, but the suggestion
+
// Autofill messages sent from the renderer to the browser.
// TODO(creis): check in the browser that the renderer actually has permission
@@ -257,6 +264,10 @@ IPC_MESSAGE_ROUTED4(AutofillHostMsg_ShowPasswordSuggestions,
std::vector<base::string16> /* suggestions */,
std::vector<base::string16> /* realms */)
+// Instruct the browser that a saved password has to be removed.
+IPC_MESSAGE_ROUTED1(AutofillHostMsg_RemoveSavedPasswordAndUpdateManagers,
+ autofill::PasswordForm /* the password form */)
+
// Inform browser of data list values for the curent field.
IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList,
std::vector<base::string16> /* values */,

Powered by Google App Engine
This is Rietveld 408576698