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

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

Issue 907533004: [Extensions] Sync the 'allowed scripting on all urls' preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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_data.h
diff --git a/chrome/browser/extensions/extension_sync_data.h b/chrome/browser/extensions/extension_sync_data.h
index 1e924ddf2c443de6f5ad392af98ff1d62a11e35a..7421fb0c40f571f900546f11ef2b1f5991b09413 100644
--- a/chrome/browser/extensions/extension_sync_data.h
+++ b/chrome/browser/extensions/extension_sync_data.h
@@ -26,13 +26,20 @@ class Extension;
// A class that encapsulates the synced properties of an Extension.
class ExtensionSyncData {
public:
+ enum PrefValue {
not at google - send to devlin 2015/02/11 01:34:51 This "PrefValue" name is freaking me out. Can you
Devlin 2015/02/11 17:52:21 Fair. Done.
+ PREF_UNSET,
+ PREF_TRUE,
+ PREF_FALSE
+ };
+
ExtensionSyncData();
explicit ExtensionSyncData(const syncer::SyncData& sync_data);
explicit ExtensionSyncData(const syncer::SyncChange& sync_change);
ExtensionSyncData(const Extension& extension,
bool enabled,
bool incognito_enabled,
- bool remote_install);
+ bool remote_install,
+ PrefValue all_urls_enabled);
~ExtensionSyncData();
// Retrieve sync data from this class.
@@ -58,6 +65,7 @@ class ExtensionSyncData {
bool enabled() const { return enabled_; }
bool incognito_enabled() const { return incognito_enabled_; }
bool remote_install() const { return remote_install_; }
+ PrefValue all_urls_enabled() const { return all_urls_enabled_; }
bool installed_by_custodian() const { return installed_by_custodian_; }
// Version-dependent properties (i.e., should be used only when the
@@ -76,6 +84,7 @@ class ExtensionSyncData {
bool enabled_;
bool incognito_enabled_;
bool remote_install_;
+ PrefValue all_urls_enabled_;
bool installed_by_custodian_;
Version version_;
GURL update_url_;

Powered by Google App Engine
This is Rietveld 408576698