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

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

Issue 16611003: Ignore ajax on specified pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove some debug statements I missed before 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/autofill_manager.cc
diff --git a/components/autofill/browser/autofill_manager.cc b/components/autofill/browser/autofill_manager.cc
index a8ebecd48a0bb578c2b2232aaf930fa28a91a2ee..535c58b00791ef1176a9c33834e354654e51135a 100644
--- a/components/autofill/browser/autofill_manager.cc
+++ b/components/autofill/browser/autofill_manager.cc
@@ -411,8 +411,12 @@ void AutofillManager::OnFormsSeen(const std::vector<FormData>& forms,
bool is_post_document_load = state == autofill::DYNAMIC_FORMS_SEEN;
bool has_more_forms = state == autofill::PARTIAL_FORMS_SEEN;
// If new forms were added via AJAX or DHML, treat as new page.
- if (is_post_document_load)
- Reset();
+ if (is_post_document_load) {
Raman Kakilate 2013/06/07 01:34:25 This code should have test.
Dane Wallinga 2013/06/07 21:06:47 Done.
+ if (autocheckout_manager_.ShouldIgnoreDynamicFormChanges())
+ return;
+ else
+ Reset();
+ }
RenderViewHost* host = web_contents()->GetRenderViewHost();
if (!host)

Powered by Google App Engine
This is Rietveld 408576698