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

Unified Diff: chrome/browser/extensions/app_sync_bundle.cc

Issue 217063005: Separate SyncData methods into three groups, local, remote, and common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@syncapi
Patch Set: Created 6 years, 9 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: chrome/browser/extensions/app_sync_bundle.cc
diff --git a/chrome/browser/extensions/app_sync_bundle.cc b/chrome/browser/extensions/app_sync_bundle.cc
index 061d5842fa04b1d883d0a7f0e02fffa197716732..74fc5b90c846c11c67f4445d44d3b77b81dd4e37 100644
--- a/chrome/browser/extensions/app_sync_bundle.cc
+++ b/chrome/browser/extensions/app_sync_bundle.cc
@@ -59,12 +59,12 @@ void AppSyncBundle::ProcessDeletion(std::string extension_id,
syncer::SyncChange AppSyncBundle::CreateSyncChange(
const syncer::SyncData& sync_data) {
- if (HasExtensionId(sync_data.GetTag())) {
+ if (HasExtensionId(sync_data.local().GetTag())) {
return syncer::SyncChange(FROM_HERE,
syncer::SyncChange::ACTION_UPDATE,
sync_data);
} else {
- AddApp(sync_data.GetTag());
+ AddApp(sync_data.local().GetTag());
return syncer::SyncChange(FROM_HERE,
syncer::SyncChange::ACTION_ADD,
sync_data);

Powered by Google App Engine
This is Rietveld 408576698