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

Unified Diff: components/autofill/core/browser/autofill_manager_unittest.cc

Issue 229723002: Better error reasons for rAc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android 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/core/browser/autofill_manager_unittest.cc
diff --git a/components/autofill/core/browser/autofill_manager_unittest.cc b/components/autofill/core/browser/autofill_manager_unittest.cc
index 85b0249909fb5edb1ca60f53c48d345f4c921010..c849561791452fc2ae9f3f9c34d8dad8593eebbf 100644
--- a/components/autofill/core/browser/autofill_manager_unittest.cc
+++ b/components/autofill/core/browser/autofill_manager_unittest.cc
@@ -2857,8 +2857,10 @@ class MockAutofillManagerDelegate : public TestAutofillManagerDelegate {
virtual void ShowRequestAutocompleteDialog(
const FormData& form,
const GURL& source_url,
- const base::Callback<void(const FormStructure*)>& callback) OVERRIDE {
- callback.Run(user_supplied_data_.get());
+ const ResultCallback& callback) OVERRIDE {
+ callback.Run(user_supplied_data_ ? AutocompleteResultSuccess :
+ AutocompleteResultErrorDisabled,
+ user_supplied_data_.get());
}
void SetUserSuppliedData(scoped_ptr<FormStructure> user_supplied_data) {
@@ -2868,7 +2870,7 @@ class MockAutofillManagerDelegate : public TestAutofillManagerDelegate {
private:
scoped_ptr<FormStructure> user_supplied_data_;
- DISALLOW_COPY_AND_ASSIGN(MockAutofillManagerDelegate);
+ DISALLOW_COPY_AND_ASSIGN(MockAutofillManagerDelegate);
};
} // namespace

Powered by Google App Engine
This is Rietveld 408576698