| 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 6f316e4a84071276dcf5f817c6ca9117b16cce79..88fbd3b56846d0d85c803fc2ac1fa397c23987d3 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);
|
| }
|
|
|