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

Unified Diff: chrome/browser/ui/cocoa/applescript/window_applescript.mm

Issue 1650483002: Refactor: Untangle Mac's ExclusiveAccessContext from BrowserWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self nits, More robust interface, fix other random stuff 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/applescript/window_applescript.mm
diff --git a/chrome/browser/ui/cocoa/applescript/window_applescript.mm b/chrome/browser/ui/cocoa/applescript/window_applescript.mm
index 022b334f0c02811d688a7cebfabfb86328076479..e80100ce876fe0329cc57e34859c6b3b812e8dbf 100644
--- a/chrome/browser/ui/cocoa/applescript/window_applescript.mm
+++ b/chrome/browser/ui/cocoa/applescript/window_applescript.mm
@@ -261,7 +261,9 @@
- (NSNumber*)presenting {
BOOL presentingValue = browser_->window() &&
browser_->window()->IsFullscreen() &&
- !browser_->window()->IsFullscreenWithToolbar();
+ !browser_->window()
+ ->GetExclusiveAccessContext()
+ ->IsFullscreenWithToolbar();
return [NSNumber numberWithBool:presentingValue];
}

Powered by Google App Engine
This is Rietveld 408576698