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

Unified Diff: chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Changes from review by sky 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
Index: chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc
diff --git a/chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc b/chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc
index 6006707b8f68412370fe406941e0e8ece976790e..f53f63c8f27daebd953b1acc87a2868397d00292 100644
--- a/chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc
+++ b/chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc
@@ -63,8 +63,7 @@ syncer::SyncDataList GetAllSyncDataNoLimit(
static std::unique_ptr<KeyedService> BuildSpellcheckService(
content::BrowserContext* profile) {
- return base::WrapUnique(
- new SpellcheckService(static_cast<Profile*>(profile)));
+ return base::MakeUnique<SpellcheckService>(static_cast<Profile*>(profile));
}
class SpellcheckCustomDictionaryTest : public testing::Test {
@@ -911,7 +910,7 @@ TEST_F(SpellcheckCustomDictionaryTest, LoadDuplicatesAfterSync) {
EXPECT_TRUE(custom_dictionary->IsSyncing());
OnLoaded(*custom_dictionary,
- base::WrapUnique(new std::set<std::string>(change.to_add())));
+ base::MakeUnique<std::set<std::string>>(change.to_add()));
EXPECT_EQ(0, error_counter);
EXPECT_TRUE(custom_dictionary->IsSyncing());
« no previous file with comments | « chrome/browser/signin/test_signin_client_builder.cc ('k') | chrome/browser/ssl/chrome_expect_ct_reporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698