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

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

Issue 229723002: Better error reasons for rAc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: woopsies Created 6 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: components/autofill/content/browser/request_autocomplete_manager_unittest.cc
diff --git a/components/autofill/content/browser/request_autocomplete_manager_unittest.cc b/components/autofill/content/browser/request_autocomplete_manager_unittest.cc
index cbe3c5d3bfcde51187952d4437928bc50ccabed4..a1cf2596cb44547860dfe37b83d1acb3d79074ed 100644
--- a/components/autofill/content/browser/request_autocomplete_manager_unittest.cc
+++ b/components/autofill/content/browser/request_autocomplete_manager_unittest.cc
@@ -48,12 +48,13 @@ class CustomTestAutofillManagerDelegate : public TestAutofillManagerDelegate {
virtual void ShowRequestAutocompleteDialog(
const FormData& form,
const GURL& source_url,
- const base::Callback<void(const FormStructure*)>& callback) OVERRIDE {
+ const ResultCallback& callback) OVERRIDE {
if (should_simulate_success_) {
FormStructure form_structure(form);
- callback.Run(&form_structure);
+ callback.Run(AutocompleteResultSuccess, &form_structure);
} else {
- callback.Run(NULL);
+ callback.Run(AutofillManagerDelegate::AutocompleteResultErrorDisabled,
+ NULL);
}
}

Powered by Google App Engine
This is Rietveld 408576698