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

Unified Diff: components/autofill/content/browser/autocheckout_manager.cc

Issue 16611003: Ignore ajax on specified pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: yay for scoped pointers 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/content/browser/autocheckout_manager.cc
diff --git a/components/autofill/content/browser/autocheckout_manager.cc b/components/autofill/content/browser/autocheckout_manager.cc
index 0bbc895fe178a3f5b9b3c69f351befd970000ad7..bdd71196d1f70f388e21ab3347b001fe144419ad 100644
--- a/components/autofill/content/browser/autocheckout_manager.cc
+++ b/components/autofill/content/browser/autocheckout_manager.cc
@@ -272,6 +272,10 @@ void AutocheckoutManager::OnFormsSeen() {
autocheckout_offered_ = false;
}
+bool AutocheckoutManager::ShouldIgnoreAjax() {
+ return in_autocheckout_flow_ && page_meta_data_->ignore_ajax;
+}
+
void AutocheckoutManager::MaybeShowAutocheckoutBubble(
const GURL& frame_url,
const content::SSLStatus& ssl_status,

Powered by Google App Engine
This is Rietveld 408576698