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

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

Issue 1200833004: Apps&Extensions for Supervised Users: send permission request on outdated re-enables (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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: 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);
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | chrome/browser/extensions/extension_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698