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

Unified Diff: extensions/common/value_builder.h

Issue 987583004: Add audible, muted to Tab, c.t.query, c.t.update, and c.t.onUpdated where relevant (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@patch1
Patch Set: remove unneeded header files Created 5 years, 9 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: 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;

Powered by Google App Engine
This is Rietveld 408576698