Index: components/translate/core/browser/translate_prefs_unittest.cc |
diff --git a/components/translate/core/browser/translate_prefs_unittest.cc b/components/translate/core/browser/translate_prefs_unittest.cc |
index 8ef04f99ec93bcaf71cd16bd51d41e643e4f6ef5..5fa78fdc30b23f63432566d4f7f381f0ffc988f6 100644 |
--- a/components/translate/core/browser/translate_prefs_unittest.cc |
+++ b/components/translate/core/browser/translate_prefs_unittest.cc |
@@ -240,7 +240,7 @@ TEST_F(TranslatePrefTest, ULPPrefs) { |
<< error_column << std::endl |
<< json1; |
- prefs_->SetUserPref(TranslatePrefs::kPrefLanguageProfile, profile.release()); |
+ prefs_->SetUserPref(TranslatePrefs::kPrefLanguageProfile, std::move(profile)); |
TranslatePrefs::LanguageAndProbabilityList list; |
EXPECT_EQ(0.8, translate_prefs_->GetReadingFromUserLanguageProfile(&list)); |
@@ -288,7 +288,7 @@ TEST_F(TranslatePrefTest, ULPPrefs) { |
<< error_column << std::endl |
<< json2; |
- prefs_->SetUserPref(TranslatePrefs::kPrefLanguageProfile, profile.release()); |
+ prefs_->SetUserPref(TranslatePrefs::kPrefLanguageProfile, std::move(profile)); |
list.clear(); |
EXPECT_EQ(0.3, translate_prefs_->GetReadingFromUserLanguageProfile(&list)); |
@@ -325,7 +325,7 @@ TEST_F(TranslatePrefTest, ULPPrefs) { |
<< error_column << std::endl |
<< json3; |
- prefs_->SetUserPref(TranslatePrefs::kPrefLanguageProfile, profile.release()); |
+ prefs_->SetUserPref(TranslatePrefs::kPrefLanguageProfile, std::move(profile)); |
list.clear(); |
EXPECT_EQ(0.8, translate_prefs_->GetReadingFromUserLanguageProfile(&list)); |