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

Unified Diff: sync/internal_api/js_mutation_event_observer.cc

Issue 10795018: [Sync] Remove unneeded 'using syncer::' lines and 'syncer::' scopings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fiix indent Created 8 years, 5 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 d977fa54176ad9c00f3d7527a1da2dfc0d3a7dd3..262c7b55240074fe51b7d5992e17a791621dde34 100644
--- a/sync/internal_api/js_mutation_event_observer.cc
+++ b/sync/internal_api/js_mutation_event_observer.cc
@@ -44,21 +44,21 @@ const size_t kChangeLimit = 100;
} // namespace
void JsMutationEventObserver::OnChangesApplied(
- syncer::ModelType model_type,
+ ModelType model_type,
int64 write_transaction_id,
- const syncer::ImmutableChangeRecordList& changes) {
+ const ImmutableChangeRecordList& changes) {
if (!event_handler_.IsInitialized()) {
return;
}
DictionaryValue details;
- details.SetString("modelType", syncer::ModelTypeToString(model_type));
+ details.SetString("modelType", ModelTypeToString(model_type));
details.SetString("writeTransactionId",
base::Int64ToString(write_transaction_id));
base::Value* changes_value = NULL;
const size_t changes_size = changes.Get().size();
if (changes_size <= kChangeLimit) {
ListValue* changes_list = new ListValue();
- for (syncer::ChangeRecordList::const_iterator it =
+ for (ChangeRecordList::const_iterator it =
changes.Get().begin(); it != changes.Get().end(); ++it) {
changes_list->Append(it->ToValue());
}
@@ -73,19 +73,18 @@ void JsMutationEventObserver::OnChangesApplied(
HandleJsEvent(FROM_HERE, "onChangesApplied", JsEventDetails(&details));
}
-void JsMutationEventObserver::OnChangesComplete(
- syncer::ModelType model_type) {
+void JsMutationEventObserver::OnChangesComplete(ModelType model_type) {
if (!event_handler_.IsInitialized()) {
return;
}
DictionaryValue details;
- details.SetString("modelType", syncer::ModelTypeToString(model_type));
+ details.SetString("modelType", ModelTypeToString(model_type));
HandleJsEvent(FROM_HERE, "onChangesComplete", JsEventDetails(&details));
}
void JsMutationEventObserver::OnTransactionWrite(
const syncable::ImmutableWriteTransactionInfo& write_transaction_info,
- syncer::ModelTypeSet models_with_changes) {
+ ModelTypeSet models_with_changes) {
DCHECK(CalledOnValidThread());
if (!event_handler_.IsInitialized()) {
return;
@@ -94,7 +93,7 @@ void JsMutationEventObserver::OnTransactionWrite(
details.Set("writeTransactionInfo",
write_transaction_info.Get().ToValue(kChangeLimit));
details.Set("modelsWithChanges",
- syncer::ModelTypeSetToValue(models_with_changes));
+ 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