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

Unified Diff: components/user_prefs/tracked/tracked_preferences_migration_unittest.cc

Issue 1609923002: Fix remaining incompatibilities between scoped_ptr and unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/user_prefs/tracked/tracked_preferences_migration_unittest.cc
diff --git a/components/user_prefs/tracked/tracked_preferences_migration_unittest.cc b/components/user_prefs/tracked/tracked_preferences_migration_unittest.cc
index 4c837f99dfbba1f671733026a39d570e24823d97..cba3bf221d4271b7fd0ed7b55ab48270a06d71a9 100644
--- a/components/user_prefs/tracked/tracked_preferences_migration_unittest.cc
+++ b/components/user_prefs/tracked/tracked_preferences_migration_unittest.cc
@@ -293,9 +293,9 @@ class TrackedPreferencesMigrationTest : public testing::Test {
bool HasPrefs(MockPrefStoreID store_id) {
switch (store_id) {
case MOCK_UNPROTECTED_PREF_STORE:
- return unprotected_prefs_;
+ return !!unprotected_prefs_;
case MOCK_PROTECTED_PREF_STORE:
- return protected_prefs_;
+ return !!protected_prefs_;
}
NOTREACHED();
return false;

Powered by Google App Engine
This is Rietveld 408576698