diff options
Diffstat (limited to 'chrome/common/property_bag.cc')
-rw-r--r-- | chrome/common/property_bag.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/property_bag.cc b/chrome/common/property_bag.cc index f7c92a3..dc25961 100644 --- a/chrome/common/property_bag.cc +++ b/chrome/common/property_bag.cc @@ -35,6 +35,13 @@ PropertyBag::Prop* PropertyBag::GetProperty(PropID id) { return found->second.get(); } +const PropertyBag::Prop* PropertyBag::GetProperty(PropID id) const { + PropertyMap::const_iterator found = props_.find(id); + if (found == props_.end()) + return NULL; + return found->second.get(); +} + void PropertyBag::DeleteProperty(PropID id) { PropertyMap::iterator found = props_.find(id); if (found == props_.end()) |