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

Unified Diff: chrome/browser/extensions/extension_sync_service.h

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: tests! Created 5 years, 2 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/extension_sync_service.h
diff --git a/chrome/browser/extensions/extension_sync_service.h b/chrome/browser/extensions/extension_sync_service.h
index 9bbb2cdb48571df74eb17027483a7d3b5893095a..04525a530c2c7b3405078d5ef4c4f17ad7a3f9ce 100644
--- a/chrome/browser/extensions/extension_sync_service.h
+++ b/chrome/browser/extensions/extension_sync_service.h
@@ -45,6 +45,13 @@ class ExtensionSyncService : public syncer::SyncableService,
// all_urls_enabled).
void SyncExtensionChangeIfNeeded(const extensions::Extension& extension);
+ // Returns whether the extension with the given |id| will be re-enabled once
+ // it is updated to the given |version|. This happens when we get a Sync
+ // update telling us to re-enable a newer version that what is currently
+ // installed.
+ bool HasPendingReenable(const std::string& id,
+ const base::Version& version) const;
+
// syncer::SyncableService implementation.
syncer::SyncMergeResult MergeDataAndStartSyncing(
syncer::ModelType type,

Powered by Google App Engine
This is Rietveld 408576698