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

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

Issue 1136543003: Extensions: Store disable reasons in Sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix memleak in test Created 5 years, 7 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 5808b6b66805d10ad83be8fad109f96ed78701aa..5a94eaba1a5686e8c94c7209deb332e50f44ba7d 100644
--- a/chrome/browser/extensions/extension_sync_data.h
+++ b/chrome/browser/extensions/extension_sync_data.h
@@ -36,6 +36,7 @@ class ExtensionSyncData {
ExtensionSyncData();
ExtensionSyncData(const Extension& extension,
bool enabled,
+ int disable_reasons,
bool incognito_enabled,
bool remote_install,
OptionalBoolean all_urls_enabled);
@@ -69,13 +70,14 @@ class ExtensionSyncData {
// |version|).
bool uninstalled() const { return uninstalled_; }
bool enabled() const { return enabled_; }
+ int disable_reasons() const { return disable_reasons_; }
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
- // version of the currenty-installed extension matches |version|).
+ // version of the currently-installed extension matches |version|).
const Version& version() const { return version_; }
const GURL& update_url() const { return update_url_; }
// Used only for debugging.
@@ -88,6 +90,7 @@ class ExtensionSyncData {
std::string id_;
bool uninstalled_;
bool enabled_;
+ int disable_reasons_;
bool incognito_enabled_;
bool remote_install_;
OptionalBoolean all_urls_enabled_;

Powered by Google App Engine
This is Rietveld 408576698