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

Unified Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 8851006: [Sync] Replace all instances of ModelTypeSet with ModelEnumSet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup pass #2 Created 9 years 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
« no previous file with comments | « no previous file | chrome/browser/sync/backend_migrator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | chrome/browser/sync/backend_migrator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698