diff options
Diffstat (limited to 'sync/protocol')
-rw-r--r-- | sync/protocol/extension_specifics.proto | 5 | ||||
-rw-r--r-- | sync/protocol/proto_value_conversions.cc | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/sync/protocol/extension_specifics.proto b/sync/protocol/extension_specifics.proto index 8e724a3..a854e01 100644 --- a/sync/protocol/extension_specifics.proto +++ b/sync/protocol/extension_specifics.proto @@ -48,5 +48,10 @@ message ExtensionSpecifics { // optional and may be absent. We need this for the time being because we need // to know if a user has not set an explicit preference. optional bool all_urls_enabled = 9; + + // Bitmask of the set of reasons why the extension is disabled (see + // Extension::DisableReason). Only relevant when enabled == false. Note that + // old clients (<M45) won't set this, even when enabled is false. + optional int32 disable_reasons = 10; } diff --git a/sync/protocol/proto_value_conversions.cc b/sync/protocol/proto_value_conversions.cc index 3ce9528..758729b 100644 --- a/sync/protocol/proto_value_conversions.cc +++ b/sync/protocol/proto_value_conversions.cc @@ -456,10 +456,11 @@ scoped_ptr<base::DictionaryValue> ExtensionSpecificsToValue( SET_STR(update_url); SET_BOOL(enabled); SET_BOOL(incognito_enabled); + SET_STR(name); SET_BOOL(remote_install); SET_BOOL(installed_by_custodian); SET_BOOL(all_urls_enabled); - SET_STR(name); + SET_INT32(disable_reasons); return value; } |