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

Unified Diff: components/autofill/core/browser/autofill_metrics_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/core/browser/autofill_metrics_unittest.cc
diff --git a/components/autofill/core/browser/autofill_metrics_unittest.cc b/components/autofill/core/browser/autofill_metrics_unittest.cc
index 494446462b998e888968d000a9647669042e4969..b8278a4c894c9c8cc303ad68524e3b281c02aa9c 100644
--- a/components/autofill/core/browser/autofill_metrics_unittest.cc
+++ b/components/autofill/core/browser/autofill_metrics_unittest.cc
@@ -6,10 +6,10 @@
#include <stddef.h>
+#include <memory>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
@@ -288,7 +288,7 @@ class TestAutofillManager : public AutofillManager {
private:
bool autofill_enabled_;
- scoped_ptr<base::RunLoop> run_loop_;
+ std::unique_ptr<base::RunLoop> run_loop_;
DISALLOW_COPY_AND_ASSIGN(TestAutofillManager);
};
@@ -311,13 +311,13 @@ class AutofillMetricsTest : public testing::Test {
base::MessageLoop message_loop_;
TestAutofillClient autofill_client_;
- scoped_ptr<AccountTrackerService> account_tracker_;
- scoped_ptr<FakeSigninManagerBase> signin_manager_;
- scoped_ptr<TestSigninClient> signin_client_;
- scoped_ptr<TestAutofillDriver> autofill_driver_;
- scoped_ptr<TestAutofillManager> autofill_manager_;
- scoped_ptr<TestPersonalDataManager> personal_data_;
- scoped_ptr<AutofillExternalDelegate> external_delegate_;
+ std::unique_ptr<AccountTrackerService> account_tracker_;
+ std::unique_ptr<FakeSigninManagerBase> signin_manager_;
+ std::unique_ptr<TestSigninClient> signin_client_;
+ std::unique_ptr<TestAutofillDriver> autofill_driver_;
+ std::unique_ptr<TestAutofillManager> autofill_manager_;
+ std::unique_ptr<TestPersonalDataManager> personal_data_;
+ std::unique_ptr<AutofillExternalDelegate> external_delegate_;
};
AutofillMetricsTest::~AutofillMetricsTest() {
« no previous file with comments | « components/autofill/core/browser/autofill_merge_unittest.cc ('k') | components/autofill/core/browser/autofill_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698