Chromium Code Reviews| 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; |