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 00007baeee69965f984f6c87bbe7ccf2c1fb90a7..53c6a909b9ebd952377b4e1752ff00b20a4aad86 100644 |
--- a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc |
+++ b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc |
@@ -142,6 +142,7 @@ void TabAutofillManagerDelegate::ShowRequestAutocompleteDialog( |
DialogType dialog_type, |
const base::Callback<void(const FormStructure*, |
const std::string&)>& callback) { |
+#if defined(ENABLE_AUTOFILL_DIALOG) |
HideRequestAutocompleteDialog(); |
dialog_controller_ = AutofillDialogControllerImpl::Create(web_contents_, |
@@ -150,6 +151,10 @@ void TabAutofillManagerDelegate::ShowRequestAutocompleteDialog( |
dialog_type, |
callback); |
dialog_controller_->Show(); |
+#else |
+ callback.Run(NULL, std::string()); |
+ NOTIMPLEMENTED(); |
+#endif // #if !defined(ENABLE_AUTOFILL_DIALOG) |
} |
void TabAutofillManagerDelegate::ShowAutofillPopup( |