namespace {
BrowserActionsContainer* GetContainer(Browser* browser) {
- BrowserActionsContainer* container =
- browser->window()->GetBrowserWindowTesting()->GetToolbarView()->
- browser_actions();
- return container;
+ return browser->window()->GetBrowserWindowTesting()->GetToolbarView()->
+ browser_actions();
}
} // namespace
button()->extension());
}
+void BrowserActionTestUtil::InspectPopup(int index) {
+ GetContainer(browser_)->InspectPopup(GetExtensionAction(index));
+}
+
bool BrowserActionTestUtil::HasIcon(int index) {
return GetContainer(browser_)->GetBrowserActionViewAt(index)->button()->
HasIcon();
}
bool BrowserActionTestUtil::HidePopup() {
- BrowserActionsContainer* container = GetContainer(browser_);
- container->HidePopup();
+ GetContainer(browser_)->HidePopup();
return !HasPopup();
}