Chromium Code Reviews| 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 : |
|
blundell
2014/04/10 08:03:40
These need to be prefixed by AutofillManagerDelega
Evan Stade
2014/04/10 16:38:58
No, because |this| inherits from AutofillManagerDe
|
| + 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 |