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

Unified Diff: components/autofill/browser/autocomplete_history_manager.cc

Issue 15097004: Enable Autocomplete feature for chromium webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setSaveFormData2
Patch Set: added a unit test Created 7 years, 6 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/browser/autocomplete_history_manager.cc
diff --git a/components/autofill/browser/autocomplete_history_manager.cc b/components/autofill/browser/autocomplete_history_manager.cc
index 2f6ce6356e20b0887005d98542ec8c9338fdc875..fc64c241ee94fbbf41449ed36b5b4e96254a3c14 100644
--- a/components/autofill/browser/autocomplete_history_manager.cc
+++ b/components/autofill/browser/autocomplete_history_manager.cc
@@ -124,12 +124,6 @@ void AutocompleteHistoryManager::OnGetAutocompleteSuggestions(
}
void AutocompleteHistoryManager::OnFormSubmitted(const FormData& form) {
- if (!*autofill_enabled_)
- return;
-
- if (browser_context_->IsOffTheRecord())
- return;
Ilya Sherman 2013/06/15 00:28:09 Please either keep these if-stmts, or replace them
Ilya Sherman 2013/06/15 00:28:09 I don't follow why this check was removed -- there
sgurun-gerrit only 2013/06/17 21:20:32 Done.
sgurun-gerrit only 2013/06/17 21:20:32 Done.
-
// Don't save data that was submitted through JavaScript.
if (!form.user_submitted)
return;

Powered by Google App Engine
This is Rietveld 408576698