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

Unified Diff: components/autofill/content/browser/risk/fingerprint_browsertest.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/risk/fingerprint_browsertest.cc
diff --git a/components/autofill/content/browser/risk/fingerprint_browsertest.cc b/components/autofill/content/browser/risk/fingerprint_browsertest.cc
index 25179808fa6f4933c86726122282e6a855ab20cf..a6f8888a551a1912442c687f5ae93991cf79a17c 100644
--- a/components/autofill/content/browser/risk/fingerprint_browsertest.cc
+++ b/components/autofill/content/browser/risk/fingerprint_browsertest.cc
@@ -6,6 +6,8 @@
#include <stdint.h>
+#include <memory>
+
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "build/build_config.h"
@@ -41,7 +43,7 @@ void GetFingerprintInternal(
const std::string& app_locale,
const std::string& user_agent,
const base::TimeDelta& timeout,
- const base::Callback<void(scoped_ptr<Fingerprint>)>& callback);
+ const base::Callback<void(std::unique_ptr<Fingerprint>)>& callback);
} // namespace internal
@@ -71,7 +73,7 @@ class AutofillRiskFingerprintTest : public content::ContentBrowserTest {
available_screen_bounds_(0, 11, 101, 60),
unavailable_screen_bounds_(0, 0, 101, 11) {}
- void GetFingerprintTestCallback(scoped_ptr<Fingerprint> fingerprint) {
+ void GetFingerprintTestCallback(std::unique_ptr<Fingerprint> fingerprint) {
// Verify that all fields Chrome can fill have been filled.
ASSERT_TRUE(fingerprint->has_machine_characteristics());
const Fingerprint::MachineCharacteristics& machine =
« no previous file with comments | « components/autofill/content/browser/risk/fingerprint.cc ('k') | components/autofill/content/browser/wallet/full_wallet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698