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

Unified Diff: chrome/browser/ui/cocoa/extensions/browser_action_test_util_mac.mm

Issue 1643963003: [Extensions UI Mac] Fix race condition in showing the icon surfacing bubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/cocoa/extensions/browser_action_test_util_mac.mm
diff --git a/chrome/browser/ui/cocoa/extensions/browser_action_test_util_mac.mm b/chrome/browser/ui/cocoa/extensions/browser_action_test_util_mac.mm
index cde8d81b265b377cbfe764c4613f00fbcce7d3d8..e743d0c18124b8b18810998ce742441f514424e7 100644
--- a/chrome/browser/ui/cocoa/extensions/browser_action_test_util_mac.mm
+++ b/chrome/browser/ui/cocoa/extensions/browser_action_test_util_mac.mm
@@ -193,6 +193,12 @@ void BrowserActionTestUtil::SetWidth(int width) {
[containerView setFrame:frame];
}
+bool BrowserActionTestUtil::IsHighlightingForSurfacingBubble() {
+ BrowserActionsContainerView* containerView =
+ [GetController(browser_, test_helper_.get()) containerView];
+ return [containerView trackingEnabled] && [containerView isHighlighting];
+}
+
ToolbarActionsBar* BrowserActionTestUtil::GetToolbarActionsBar() {
return [GetController(browser_, test_helper_.get()) toolbarActionsBar];
}

Powered by Google App Engine
This is Rietveld 408576698