| Index: chrome/browser/fullscreen_mac.mm
|
| diff --git a/chrome/browser/fullscreen_mac.mm b/chrome/browser/fullscreen_mac.mm
|
| index d40ce0a4fb2e677741402bf945897e1794f0db76..2d283603fee2db9327fd03ae4e1438819daeb6f9 100644
|
| --- a/chrome/browser/fullscreen_mac.mm
|
| +++ b/chrome/browser/fullscreen_mac.mm
|
| @@ -6,6 +6,10 @@
|
|
|
| #import <Cocoa/Cocoa.h>
|
|
|
| +#include "base/command_line.h"
|
| +#include "base/mac/mac_util.h"
|
| +#include "chrome/common/chrome_switches.h"
|
| +
|
| // Replicate specific 10.7 SDK declarations for building with prior SDKs.
|
| #if !defined(MAC_OS_X_VERSION_10_7) || \
|
| MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
|
| @@ -40,3 +44,17 @@ bool IsFullScreenMode() {
|
|
|
| return false;
|
| }
|
| +
|
| +namespace chrome {
|
| +namespace mac {
|
| +
|
| +bool SupportsSystemFullscreen() {
|
| + const CommandLine* command_line = CommandLine::ForCurrentProcess();
|
| + if (command_line->HasSwitch(switches::kDisableSystemFullscreenForTesting))
|
| + return false;
|
| +
|
| + return base::mac::IsOSLionOrLater();
|
| +}
|
| +
|
| +} // namespace mac
|
| +} // namespace chrome
|
|
|