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

Unified Diff: chrome/browser/ui/views/frame/immersive_mode_controller_factory.cc

Issue 16070003: Move immersive fullscreen check into ImmersiveFullscreenConfiguration. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rm DEPS file Created 7 years, 7 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/views/frame/immersive_mode_controller_factory.cc
diff --git a/chrome/browser/ui/views/frame/immersive_mode_controller_factory.cc b/chrome/browser/ui/views/frame/immersive_mode_controller_factory.cc
index 3a6b67cf8004f5b9518ac7aca69ad34082f91386..e14b2fb51dd7755d7998c4e4170d4f9914b0e3da 100644
--- a/chrome/browser/ui/views/frame/immersive_mode_controller_factory.cc
+++ b/chrome/browser/ui/views/frame/immersive_mode_controller_factory.cc
@@ -7,28 +7,11 @@
#include "chrome/browser/ui/views/frame/immersive_mode_controller_stub.h"
#if defined(OS_CHROMEOS)
-#include "ash/ash_switches.h"
-#include "base/command_line.h"
#include "chrome/browser/ui/views/frame/immersive_mode_controller_ash.h"
-#include "chrome/common/chrome_switches.h"
#endif // defined(OS_CHROMEOS)
namespace chrome {
-bool UseImmersiveFullscreen() {
-#if defined(OS_CHROMEOS)
- CommandLine* command = CommandLine::ForCurrentProcess();
- // Kiosk mode needs the whole screen.
- if (command->HasSwitch(switches::kKioskMode))
- return false;
- // Immersive fullscreen is on by default. If you change the default you must
- // change the enable function below and BrowserTest FullscreenBookmarkBar
- // (which cannot depend on this function due to DEPS).
- return !command->HasSwitch(ash::switches::kAshDisableImmersiveFullscreen);
-#endif
- return false;
-}
-
// Implemented here so all the code dealing with flags lives in one place.
void EnableImmersiveFullscreenForTest() {
James Cook 2013/05/27 12:00:20 I would move this function to the ImmersiveFullscr
tfarina 2013/05/29 02:03:52 Done.
// Immersive fullscreen is on by default. If we turn it off, this function

Powered by Google App Engine
This is Rietveld 408576698