Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6922)

Unified Diff: chrome/browser/ui/views/toolbar/browser_action_test_util_views.cc

Issue 298813002: views: Move MenuButton from TextButton to LabelButton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable DragDirectlyToSecondWindow. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 ed69780848c15d7671ebb3c2590383c8ff174c42..45e55d696bfeabeef4b85f4f16edb79cd4d932fb 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
@@ -44,8 +44,8 @@ void BrowserActionTestUtil::InspectPopup(int index) {
}
bool BrowserActionTestUtil::HasIcon(int index) {
- return GetContainer(browser_)->GetBrowserActionViewAt(index)->button()->
- HasIcon();
+ return !GetContainer(browser_)->GetBrowserActionViewAt(index)->button()->
+ GetImage(views::Button::STATE_NORMAL).isNull();
}
gfx::Image BrowserActionTestUtil::GetIcon(int index) {

Powered by Google App Engine
This is Rietveld 408576698