Index: extensions/common/value_builder.h |
diff --git a/extensions/common/value_builder.h b/extensions/common/value_builder.h |
index cc1ac041efa8bdc616f93e24f43d8e26a9eea8e9..092fe7ba552af5890a86fb730d423e59638bc4c1 100644 |
--- a/extensions/common/value_builder.h |
+++ b/extensions/common/value_builder.h |
@@ -56,6 +56,9 @@ class DictionaryBuilder { |
// Can only be called once, after which it's invalid to use the builder. |
scoped_ptr<base::DictionaryValue> Build() { return dict_.Pass(); } |
+ // Get the number of elements stored in the dictionary |
+ long size() const { return dict_->size(); } |
not at google - send to devlin
2015/03/16 18:11:56
size_t
but this change might not be necessary
|
+ |
// Immediately serializes the current state to JSON. Can be called as many |
// times as you like. |
std::string ToJSON() const; |