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

Unified Diff: chrome/browser/autocomplete_history_manager.cc

Issue 3149003: Not store autocomplete entries in DB for forms submitted using javascript.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete_history_manager.cc
===================================================================
--- chrome/browser/autocomplete_history_manager.cc (revision 55354)
+++ chrome/browser/autocomplete_history_manager.cc (working copy)
@@ -150,6 +150,10 @@
if (profile_->IsOffTheRecord())
return;
+ // Don't save data that was submitted through JavaScript.
+ if (!form.user_submitted)
+ return;
+
// We put the following restriction on stored FormFields:
// - non-empty name
// - non-empty value
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698