Index: chrome/browser/automation/testing_automation_provider.cc |
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc |
index c7b7634856779a7698939fe24d517741b7195c8b..1e3d342fb9c323ff1b58b80d6eb8a24609c130e3 100644 |
--- a/chrome/browser/automation/testing_automation_provider.cc |
+++ b/chrome/browser/automation/testing_automation_provider.cc |
@@ -4962,12 +4962,12 @@ void TestingAutomationProvider::GetSyncInfo(Browser* browser, |
sync_info->SetString("last synced", service->GetLastSyncedTimeString()); |
sync_info->SetInteger("updates received", status.updates_received); |
ListValue* synced_datatype_list = new ListValue; |
- syncable::ModelTypeSet synced_datatypes; |
- service->GetPreferredDataTypes(&synced_datatypes); |
- for (syncable::ModelTypeSet::iterator it = synced_datatypes.begin(); |
- it != synced_datatypes.end(); ++it) { |
+ const syncable::ModelEnumSet synced_datatypes = |
+ service->GetPreferredDataTypes(); |
+ for (syncable::ModelEnumSet::Iterator it = synced_datatypes.First(); |
+ it.Good(); it.Inc()) { |
synced_datatype_list->Append( |
- new StringValue(syncable::ModelTypeToString(*it))); |
+ new StringValue(syncable::ModelTypeToString(it.Get()))); |
} |
sync_info->Set("synced datatypes", synced_datatype_list); |
} |