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

Unified Diff: chrome/common/extensions/event_filtering_info.cc

Issue 10514013: Filtered events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix 80 char Created 8 years, 6 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/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

Powered by Google App Engine
This is Rietveld 408576698