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

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..9e6704353980dc433c69b89dc221f9dfb324fa13 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 OptionalBoolean {
+ BOOLEAN_UNSET,
+ BOOLEAN_TRUE,
+ BOOLEAN_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,
+ OptionalBoolean 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_; }
+ OptionalBoolean 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_;
+ OptionalBoolean all_urls_enabled_;
bool installed_by_custodian_;
Version version_;
GURL update_url_;
« no previous file with comments | « chrome/browser/extensions/extension_service_unittest.cc ('k') | chrome/browser/extensions/extension_sync_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698