Chromium Code Reviews| 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 8d9db483dd48dd858c5961530d523085118d034d..9786b80fef3bd63185d8c32ad60351827d81f99a 100644 |
| --- a/components/autofill/content/browser/request_autocomplete_manager_unittest.cc |
| +++ b/components/autofill/content/browser/request_autocomplete_manager_unittest.cc |
| @@ -2,13 +2,15 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| +#include "components/autofill/content/browser/request_autocomplete_manager.h" |
|
Mathieu
2016/04/04 13:36:16
in another CL, https://codereview.chromium.org/185
vabr (Chromium)
2016/04/04 14:29:04
I agree, will change the other file.
To explain:
|
| + |
| #include <stdint.h> |
| #include <tuple> |
|
Mathieu
2016/04/04 13:36:16
do you think we have to include <memory> for the u
vabr (Chromium)
2016/04/04 14:29:04
The style guide does not specify this, as far as I
|
| #include "base/macros.h" |
| +#include "base/memory/ptr_util.h" |
| #include "components/autofill/content/browser/content_autofill_driver.h" |
| -#include "components/autofill/content/browser/request_autocomplete_manager.h" |
| #include "components/autofill/content/common/autofill_messages.h" |
| #include "components/autofill/core/browser/test_autofill_client.h" |
| #include "content/public/browser/web_contents.h" |
| @@ -80,7 +82,7 @@ class TestContentAutofillDriver : public ContentAutofillDriver { |
| TestContentAutofillDriver(content::RenderFrameHost* rfh, |
| AutofillClient* client) |
| : ContentAutofillDriver(rfh, client, kAppLocale, kDownloadState) { |
| - SetAutofillManager(make_scoped_ptr<AutofillManager>( |
| + SetAutofillManager(base::WrapUnique<AutofillManager>( |
| new TestAutofillManager(this, client))); |
| } |
| ~TestContentAutofillDriver() override {} |
| @@ -137,8 +139,8 @@ class RequestAutocompleteManagerTest : |
| protected: |
| CustomTestAutofillClient autofill_client_; |
| - scoped_ptr<TestContentAutofillDriver> driver_; |
| - scoped_ptr<RequestAutocompleteManager> request_autocomplete_manager_; |
| + std::unique_ptr<TestContentAutofillDriver> driver_; |
| + std::unique_ptr<RequestAutocompleteManager> request_autocomplete_manager_; |
| DISALLOW_COPY_AND_ASSIGN(RequestAutocompleteManagerTest); |
| }; |