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

Unified Diff: chrome/browser/sync/profile_sync_service_harness.cc

Issue 7669073: [Sync] Add support for enabling session sync remotely. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DOUBLE R..ebase Created 9 years, 4 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/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(&registered_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() {
« no previous file with comments | « chrome/browser/sync/profile_sync_service_harness.h ('k') | chrome/browser/sync/protocol/nigori_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698