| Index: chrome/browser/ui/views/toolbar/browser_action_test_util_views.cc
|
| diff --git a/chrome/browser/ui/views/toolbar/browser_action_test_util_views.cc b/chrome/browser/ui/views/toolbar/browser_action_test_util_views.cc
|
| index a4e0e6cb7a2f6293a8b4555f688669150209ed6f..d5424de3d9f06c3514f24f00645ec04b9a868325 100644
|
| --- a/chrome/browser/ui/views/toolbar/browser_action_test_util_views.cc
|
| +++ b/chrome/browser/ui/views/toolbar/browser_action_test_util_views.cc
|
| @@ -41,7 +41,9 @@ ExtensionAction* BrowserActionTestUtil::GetExtensionAction(int index) {
|
| }
|
|
|
| void BrowserActionTestUtil::InspectPopup(int index) {
|
| - GetContainer(browser_)->InspectPopup(GetExtensionAction(index));
|
| + BrowserActionButton* button =
|
| + GetContainer(browser_)->GetBrowserActionViewAt(index)->button();
|
| + button->InspectPopup(button->browser_action());
|
| }
|
|
|
| bool BrowserActionTestUtil::HasIcon(int index) {
|
| @@ -56,7 +58,8 @@ gfx::Image BrowserActionTestUtil::GetIcon(int index) {
|
| }
|
|
|
| void BrowserActionTestUtil::Press(int index) {
|
| - GetContainer(browser_)->TestExecuteBrowserAction(index);
|
| + GetContainer(browser_)->GetBrowserActionViewAt(index)->
|
| + button()->ExecuteBrowserAction();
|
| }
|
|
|
| std::string BrowserActionTestUtil::GetExtensionId(int index) {
|
| @@ -85,7 +88,7 @@ gfx::Rect BrowserActionTestUtil::GetPopupBounds() {
|
| }
|
|
|
| bool BrowserActionTestUtil::HidePopup() {
|
| - GetContainer(browser_)->HidePopup();
|
| + GetContainer(browser_)->HideActivePopup();
|
| return !HasPopup();
|
| }
|
|
|
|
|