Home
last modified time | relevance | path

Searched refs:items_by_id_ (Results 1 – 3 of 3) sorted by relevance

/external/chromium/chrome/browser/extensions/
Dextension_menu_manager.cc132 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()
Dextension_menu_manager_unittest.cc197 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()
Dextension_menu_manager.h279 std::map<ExtensionMenuItem::Id, ExtensionMenuItem*> items_by_id_; variable