Index: chrome/browser/sync/profile_sync_service_harness.cc |
diff --git a/chrome/browser/sync/profile_sync_service_harness.cc b/chrome/browser/sync/profile_sync_service_harness.cc |
index 9149723a2ed1c78db82f8b9fdc7c3e4b4bd858d0..2d0fd3e6eb31881e419f29f12bc8307d43c358dd 100644 |
--- a/chrome/browser/sync/profile_sync_service_harness.cc |
+++ b/chrome/browser/sync/profile_sync_service_harness.cc |
@@ -874,10 +874,19 @@ bool ProfileSyncServiceHarness::WaitForTypeEncryption( |
bool ProfileSyncServiceHarness::IsTypeEncrypted(syncable::ModelType type) { |
syncable::ModelTypeSet encrypted_types; |
service_->GetEncryptedDataTypes(&encrypted_types); |
- if (encrypted_types.count(type) == 0) { |
- return false; |
- } |
- return true; |
+ return (encrypted_types.count(type) != 0); |
+} |
+ |
+bool ProfileSyncServiceHarness::IsTypeRegistered(syncable::ModelType type) { |
+ syncable::ModelTypeSet registered_types; |
+ service_->GetRegisteredDataTypes(®istered_types); |
+ return (registered_types.count(type) != 0); |
+} |
+ |
+bool ProfileSyncServiceHarness::IsTypePreferred(syncable::ModelType type) { |
+ syncable::ModelTypeSet synced_types; |
+ service_->GetPreferredDataTypes(&synced_types); |
+ return (synced_types.count(type) != 0); |
} |
std::string ProfileSyncServiceHarness::GetServiceStatus() { |