Index: chrome/common/extensions/event_filtering_info.cc |
diff --git a/chrome/common/extensions/event_filtering_info.cc b/chrome/common/extensions/event_filtering_info.cc |
index 1b613991fea7113efdb79c57c9d92f84f489d4a0..0f8957c50866880642f55859454b8924e556aaef 100644 |
--- a/chrome/common/extensions/event_filtering_info.cc |
+++ b/chrome/common/extensions/event_filtering_info.cc |
@@ -31,4 +31,11 @@ std::string EventFilteringInfo::AsJSONString() const { |
return result; |
} |
+scoped_ptr<base::Value> EventFilteringInfo::AsValue() const { |
+ scoped_ptr<base::DictionaryValue> result(new base::DictionaryValue); |
+ if (has_url_) |
+ result->SetString("url", url_.spec()); |
+ return scoped_ptr<base::Value>(result.release()); |
battre
2012/06/20 09:50:46
nit:
return result.PassAs<base::Value>();
koz (OOO until 15th September)
2012/06/21 02:23:11
Done.
|
+} |
+ |
} // namespace extensions |