| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index 72b0ce39095ed78ee8473b798750e3e460c0f5a4..a9407c1f19053d9bd54c766b481580d2d3dd3fde 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -1734,6 +1734,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,
|
|
|