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

Unified Diff: components/translate/core/browser/translate_ranker_unittest.cc

Issue 2562733003: Remove duplicated user_prefs::TestingPrefServiceSyncable (Closed)
Patch Set: Fixed usage from .mm files Created 4 years 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/translate/core/browser/translate_ranker_unittest.cc
diff --git a/components/translate/core/browser/translate_ranker_unittest.cc b/components/translate/core/browser/translate_ranker_unittest.cc
index 7b075d128443731263bef33f9c56c863a9639648..2c24bc921a90f8574ba6324b0329a240afdae71d 100644
--- a/components/translate/core/browser/translate_ranker_unittest.cc
+++ b/components/translate/core/browser/translate_ranker_unittest.cc
@@ -11,8 +11,8 @@
#include "base/strings/stringprintf.h"
#include "base/test/scoped_feature_list.h"
#include "components/metrics/proto/translate_event.pb.h"
-#include "components/pref_registry/testing_pref_service_syncable.h"
#include "components/prefs/scoped_user_pref_update.h"
+#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "components/translate/core/browser/proto/translate_ranker_model.pb.h"
#include "components/translate/core/browser/translate_download_manager.h"
#include "components/translate/core/browser/translate_prefs.h"
@@ -32,7 +32,7 @@ class TranslateRankerTest : public ::testing::Test {
// prefs and translate prefs.
base::DictionaryValue lang_count;
lang_count.SetInteger("en", 50);
- prefs_.reset(new user_prefs::TestingPrefServiceSyncable());
+ prefs_.reset(new sync_preferences::TestingPrefServiceSyncable());
TranslatePrefs::RegisterProfilePrefs(prefs_->registry());
prefs_->Set(TranslatePrefs::kPrefTranslateAcceptedCount, lang_count);
prefs_->Set(TranslatePrefs::kPrefTranslateDeniedCount, lang_count);
@@ -98,7 +98,7 @@ class TranslateRankerTest : public ::testing::Test {
static const char* const kPreferredLanguagePrefs;
- std::unique_ptr<user_prefs::TestingPrefServiceSyncable> prefs_;
+ std::unique_ptr<sync_preferences::TestingPrefServiceSyncable> prefs_;
std::unique_ptr<translate::TranslatePrefs> translate_prefs_;
private:

Powered by Google App Engine
This is Rietveld 408576698