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

Unified Diff: components/spellcheck/browser/feedback_sender_unittest.cc

Issue 2358723002: Convert FieldTrialList to Accept a std::unique_ptr (Closed)
Patch Set: Change Comment nullptr to null Created 4 years, 3 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
« no previous file with comments | « components/search/search_unittest.cc ('k') | components/variations/entropy_provider_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/spellcheck/browser/feedback_sender_unittest.cc
diff --git a/components/spellcheck/browser/feedback_sender_unittest.cc b/components/spellcheck/browser/feedback_sender_unittest.cc
index 8db8a559c79d94c2a0e65d11412942a702b66cc2..e4c81469e52da4353976021f28b9a02a10fb2fac 100644
--- a/components/spellcheck/browser/feedback_sender_unittest.cc
+++ b/components/spellcheck/browser/feedback_sender_unittest.cc
@@ -12,6 +12,7 @@
#include "base/bind.h"
#include "base/command_line.h"
#include "base/json/json_reader.h"
+#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/metrics/field_trial.h"
#include "base/strings/stringprintf.h"
@@ -120,7 +121,8 @@ class FeedbackSenderTest : public testing::Test {
// The field trial is temporary.
// TODO(rouslan): Remove the field trial. http://crbug.com/247726
field_trial_list_.reset(
- new base::FieldTrialList(new metrics::SHA1EntropyProvider("foo")));
+ new base::FieldTrialList(
+ base::MakeUnique<metrics::SHA1EntropyProvider>("foo")));
field_trial_ = base::FieldTrialList::CreateFieldTrial(
kFeedbackFieldTrialName, kFeedbackFieldTrialEnabledGroupName);
field_trial_->group();
« no previous file with comments | « components/search/search_unittest.cc ('k') | components/variations/entropy_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698