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

Unified Diff: components/sync/device_info/device_info_service.cc

Issue 2394573002: [Sync] Rename DataTypeState to ModelTypeState. (Closed)
Patch Set: Rebase. Created 4 years, 2 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: components/sync/device_info/device_info_service.cc
diff --git a/components/sync/device_info/device_info_service.cc b/components/sync/device_info/device_info_service.cc
index 7deff080c7dcd74bbe3288109a78b8641dc0ebed..f1d3f5cb8ac251f5d97941c33db2bd20290f3ee0 100644
--- a/components/sync/device_info/device_info_service.cc
+++ b/components/sync/device_info/device_info_service.cc
@@ -18,16 +18,16 @@
#include "components/sync/base/time.h"
#include "components/sync/core/data_batch_impl.h"
#include "components/sync/device_info/device_info_util.h"
-#include "components/sync/protocol/data_type_state.pb.h"
+#include "components/sync/protocol/model_type_state.pb.h"
#include "components/sync/protocol/sync.pb.h"
namespace syncer {
using base::Time;
using base::TimeDelta;
-using sync_pb::DataTypeState;
using sync_pb::DeviceInfoSpecifics;
using sync_pb::EntitySpecifics;
+using sync_pb::ModelTypeState;
using Record = ModelTypeStore::Record;
using RecordList = ModelTypeStore::RecordList;
@@ -386,9 +386,9 @@ void DeviceInfoService::OnReadAllMetadata(
}
std::unique_ptr<MetadataBatch> batch(new MetadataBatch());
- DataTypeState state;
+ ModelTypeState state;
if (state.ParseFromString(global_metadata)) {
- batch->SetDataTypeState(state);
+ batch->SetModelTypeState(state);
} else {
// TODO(skym): How bad is this scenario? We may be able to just give an
// empty batch to the processor and we'll treat corrupted data type state

Powered by Google App Engine
This is Rietveld 408576698