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

Unified Diff: chrome/browser/ui/browser_command_controller.cc

Issue 12096063: Fix failing test on Mac 10.6: TestInstallThemeInFullScreen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_command_controller.cc
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc
index 60f0fe9512cf9fa63c1c092e6c4589bcf08870df..dcaa4ff8838142603445476291cd4d5d3a9cf416 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -40,6 +40,7 @@
#include "ui/base/keycodes/keyboard_codes.h"
#if defined(OS_MACOSX)
+#include "base/mac/mac_util.h"
#include "chrome/browser/ui/browser_commands_mac.h"
#endif
@@ -426,7 +427,10 @@ void BrowserCommandController::ExecuteCommandWithDisposition(
break;
case IDC_FULLSCREEN:
#if defined(OS_MACOSX)
- chrome::ToggleFullscreenWithChrome(browser_);
+ if (base::mac::IsOSLionOrLater())
+ chrome::ToggleFullscreenWithChrome(browser_);
+ else
+ chrome::ToggleFullscreenMode(browser_);
#else
chrome::ToggleFullscreenMode(browser_);
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698