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

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: unit tests 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 204ffd951b5286a9472c67e855a11cb652955b90..c98c375b3f78ea043a66ca684200f326779be940 100644
--- a/components/autofill/content/browser/autocheckout_manager.cc
+++ b/components/autofill/content/browser/autocheckout_manager.cc
@@ -270,6 +270,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