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

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

Issue 1859453002: components/autofill: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed Created 4 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 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"
+
#include <stdint.h>
#include <tuple>
#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);
};

Powered by Google App Engine
This is Rietveld 408576698