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

Unified Diff: chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc

Issue 13947035: Fail autocheckout if there is no forms in the page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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: chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
diff --git a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
index 80d6c1353d72cbc9eb23258f66b054f66d67b0bd..56a79881e0ca6e7b905634a3e26e85e9ea579d2c 100644
--- a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
+++ b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
@@ -98,7 +98,8 @@ void TabAutofillManagerDelegate::SetSyncStateChangedCallback(
}
void TabAutofillManagerDelegate::OnAutocheckoutError() {
- dialog_controller_->OnAutocheckoutError();
+ if (dialog_controller_)
ahutter 2013/04/10 20:00:59 Is this change necessary? Ideally this method won'
benquan 2013/04/10 20:12:59 Yes, it is called from AutocheckoutManager::OnLoad
ahutter 2013/04/10 20:29:01 If it's called and |dialog_controller_| is NULL th
benquan 2013/04/11 02:17:56 When we navigated to a page with different domain,
+ dialog_controller_->OnAutocheckoutError();
}
void TabAutofillManagerDelegate::ShowAutofillSettings() {
« no previous file with comments | « no previous file | components/autofill/browser/autofill_manager.cc » ('j') | components/autofill/browser/autofill_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698