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

Unified Diff: sync/internal_api/js_mutation_event_observer.cc

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights Created 8 years, 6 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: sync/internal_api/js_mutation_event_observer.cc
diff --git a/sync/internal_api/js_mutation_event_observer.cc b/sync/internal_api/js_mutation_event_observer.cc
index 02f583724a842b19b7a2d2350ede911cd429fcf4..d977fa54176ad9c00f3d7527a1da2dfc0d3a7dd3 100644
--- a/sync/internal_api/js_mutation_event_observer.cc
+++ b/sync/internal_api/js_mutation_event_observer.cc
@@ -44,14 +44,14 @@ const size_t kChangeLimit = 100;
} // namespace
void JsMutationEventObserver::OnChangesApplied(
- syncable::ModelType model_type,
+ syncer::ModelType model_type,
int64 write_transaction_id,
const syncer::ImmutableChangeRecordList& changes) {
if (!event_handler_.IsInitialized()) {
return;
}
DictionaryValue details;
- details.SetString("modelType", syncable::ModelTypeToString(model_type));
+ details.SetString("modelType", syncer::ModelTypeToString(model_type));
details.SetString("writeTransactionId",
base::Int64ToString(write_transaction_id));
base::Value* changes_value = NULL;
@@ -74,18 +74,18 @@ void JsMutationEventObserver::OnChangesApplied(
}
void JsMutationEventObserver::OnChangesComplete(
- syncable::ModelType model_type) {
+ syncer::ModelType model_type) {
if (!event_handler_.IsInitialized()) {
return;
}
DictionaryValue details;
- details.SetString("modelType", syncable::ModelTypeToString(model_type));
+ details.SetString("modelType", syncer::ModelTypeToString(model_type));
HandleJsEvent(FROM_HERE, "onChangesComplete", JsEventDetails(&details));
}
void JsMutationEventObserver::OnTransactionWrite(
const syncable::ImmutableWriteTransactionInfo& write_transaction_info,
- syncable::ModelTypeSet models_with_changes) {
+ syncer::ModelTypeSet models_with_changes) {
DCHECK(CalledOnValidThread());
if (!event_handler_.IsInitialized()) {
return;
@@ -94,7 +94,7 @@ void JsMutationEventObserver::OnTransactionWrite(
details.Set("writeTransactionInfo",
write_transaction_info.Get().ToValue(kChangeLimit));
details.Set("modelsWithChanges",
- syncable::ModelTypeSetToValue(models_with_changes));
+ syncer::ModelTypeSetToValue(models_with_changes));
HandleJsEvent(FROM_HERE, "onTransactionWrite", JsEventDetails(&details));
}
« no previous file with comments | « sync/internal_api/js_mutation_event_observer.h ('k') | sync/internal_api/js_mutation_event_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698