| Index: extensions/common/event_filtering_info.cc
|
| diff --git a/extensions/common/event_filtering_info.cc b/extensions/common/event_filtering_info.cc
|
| index 29566e891be26381c766ab7208b7bdb3c0bbc93e..cc46f969160750c332cc725b79b3fb57ff5120de 100644
|
| --- a/extensions/common/event_filtering_info.cc
|
| +++ b/extensions/common/event_filtering_info.cc
|
| @@ -38,11 +38,15 @@ scoped_ptr<base::Value> EventFilteringInfo::AsValue() const {
|
|
|
| if (has_instance_id_)
|
| result->SetInteger("instanceId", instance_id_);
|
| +
|
| + if (!service_type_.empty())
|
| + result->SetString("serviceType", service_type_);
|
| +
|
| return result.PassAs<base::Value>();
|
| }
|
|
|
| bool EventFilteringInfo::IsEmpty() const {
|
| - return !has_url_;
|
| + return !has_url_ && service_type_.empty();
|
| }
|
|
|
| } // namespace extensions
|
|
|