Chromium Code Reviews| 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 c50f2c9aa7361b503735c8954024a6ae07080af5..bfd3e19f2f97a6f90ea5a909579ca58d42b99a54 100644 |
| --- a/chrome/browser/extensions/app_sync_bundle.cc |
| +++ b/chrome/browser/extensions/app_sync_bundle.cc |
| @@ -120,6 +120,11 @@ bool AppSyncBundle::IsSyncing() const { |
| } |
| void AppSyncBundle::SyncChangeIfNeeded(const Extension& extension) { |
| + // If there is a pending update for this app, apply it first. |
| + auto it = pending_sync_data_.find(extension.id()); |
| + if (it != pending_sync_data_.end()) |
| + ProcessSyncChange(it->second); |
|
Marc Treib
2015/06/22 15:35:18
Before this CL, the pending_sync_data_ was applied
not at google - send to devlin
2015/06/22 21:03:10
I'm struggling with this. Is SyncChangeIfNeeded th
Marc Treib
2015/06/23 10:22:25
My reasoning is this: At some previous point, we d
not at google - send to devlin
2015/06/24 00:25:10
That doesn't sound like it follows to me. Perhaps
Marc Treib
2015/06/24 11:50:57
Well, in the current state, ProcessExtensionSyncDa
not at google - send to devlin
2015/06/24 20:47:38
Indeed. It wouldn't be too hard of a transformatio
Marc Treib
2015/06/29 09:52:49
I'll take a shot at it. Let's see where I'll end u
|
| + |
| AppSyncData app_sync_data = extension_sync_service_->GetAppSyncData( |
| extension); |