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

Unified Diff: extensions/browser/extension_prefs.h

Issue 1240573012: Extension syncing: Introduce a NeedsSync pref (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext_sync_uninstall
Patch Set: (b); hackfix sync_integration_tests Created 5 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: extensions/browser/extension_prefs.h
diff --git a/extensions/browser/extension_prefs.h b/extensions/browser/extension_prefs.h
index 80507895954f7283b5bc675e70e653f7d91cd085..026a4c65464dd0418ce6e05c118bc0c680c1940b 100644
--- a/extensions/browser/extension_prefs.h
+++ b/extensions/browser/extension_prefs.h
@@ -531,6 +531,12 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
int GetCorruptedDisableCount() const;
void IncrementCorruptedDisableCount();
+ // Whether the extension with the given |id| needs to be synced. This is set
+ // when the state (such as enabled/disabled or allowed in incognito) is
+ // changed before Sync is ready.
+ bool NeedsSync(const std::string& extension_id) const;
+ void SetNeedsSync(const std::string& extension_id, bool needs_sync);
+
private:
friend class ExtensionPrefsBlacklistedExtensions; // Unit test.
friend class ExtensionPrefsComponentExtension; // Unit test.

Powered by Google App Engine
This is Rietveld 408576698