Chromium Code Reviews| Index: chrome/browser/ui/browser.cc | 
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc | 
| index 72b0ce39095ed78ee8473b798750e3e460c0f5a4..875ce315f3a2e8ea4e2293e781fbc7994fb48635 100644 | 
| --- a/chrome/browser/ui/browser.cc | 
| +++ b/chrome/browser/ui/browser.cc | 
| @@ -107,6 +107,7 @@ | 
| #include "chrome/browser/ui/browser_window.h" | 
| #include "chrome/browser/ui/chrome_pages.h" | 
| #include "chrome/browser/ui/chrome_select_file_policy.h" | 
| +#include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" | 
| 
 
sky
2015/09/04 14:58:36
You can remove this include now.
 
Mikhail
2015/09/07 09:54:42
Indeed! Thanks!
 
 | 
| #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" | 
| #include "chrome/browser/ui/exclusive_access/mouse_lock_controller.h" | 
| #include "chrome/browser/ui/extensions/hosted_app_browser_controller.h" | 
| @@ -1734,6 +1735,17 @@ bool Browser::IsFullscreenForTabOrPending( | 
| ->IsFullscreenForTabOrPending(web_contents); | 
| } | 
| +blink::WebDisplayMode Browser::GetDisplayMode( | 
| + const WebContents* web_contents) const { | 
| + if (window_->IsFullscreen()) | 
| + return blink::WebDisplayModeFullscreen; | 
| + | 
| + if (is_type_popup()) | 
| + return blink::WebDisplayModeStandalone; | 
| + | 
| + return blink::WebDisplayModeBrowser; | 
| +} | 
| + | 
| void Browser::RegisterProtocolHandler(WebContents* web_contents, | 
| const std::string& protocol, | 
| const GURL& url, |