Searched refs:items_by_id_ (Results 1 – 3 of 3) sorted by relevance
132 if (extension_id.empty() || ContainsKey(items_by_id_, item->id())) in AddContextItem()139 items_by_id_[item->id()] = item; in AddContextItem()156 ContainsKey(items_by_id_, child->id())) in AddChildItem()159 items_by_id_[child->id()] = child; in AddChildItem()232 if (!ContainsKey(items_by_id_, id)) in RemoveContextMenuItem()277 items_by_id_.erase(*removed_iter); in RemoveContextMenuItem()294 items_by_id_.erase(item->id()); in RemoveAllContextItems()300 items_by_id_.erase(*j); in RemoveAllContextItems()311 items_by_id_.find(id); in GetItemById()312 if (i != items_by_id_.end()) in GetItemById()
197 ASSERT_EQ(6u, manager_.items_by_id_.size()); in TEST_F()208 ASSERT_EQ(5u, manager_.items_by_id_.size()); in TEST_F()218 ASSERT_EQ(3u, manager_.items_by_id_.size()); in TEST_F()223 ASSERT_EQ(0u, manager_.items_by_id_.size()); in TEST_F()
279 std::map<ExtensionMenuItem::Id, ExtensionMenuItem*> items_by_id_; variable