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

Unified Diff: chrome/browser/ui/exclusive_access/exclusive_access_manager.cc

Issue 1763653002: Android: Remove the prompt when entering fullscreen mode (behind flag). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fullscreen-two-words
Patch Set: Fix interactive ui tests. Created 4 years, 9 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/exclusive_access/exclusive_access_manager.cc
diff --git a/chrome/browser/ui/exclusive_access/exclusive_access_manager.cc b/chrome/browser/ui/exclusive_access/exclusive_access_manager.cc
index ff772c368e1acaeff5cb297212a7006cb1fac584..666d11e6970660990014e60c2a88d65f567d018b 100644
--- a/chrome/browser/ui/exclusive_access/exclusive_access_manager.cc
+++ b/chrome/browser/ui/exclusive_access/exclusive_access_manager.cc
@@ -12,21 +12,13 @@
#include "chrome/browser/ui/exclusive_access/exclusive_access_context.h"
#include "chrome/browser/ui/exclusive_access/fullscreen_controller.h"
#include "chrome/browser/ui/exclusive_access/mouse_lock_controller.h"
+#include "chrome/common/chrome_features.h"
#include "chrome/common/chrome_switches.h"
#include "content/public/browser/native_web_keyboard_event.h"
#include "ui/events/keycodes/keyboard_codes.h"
using content::WebContents;
-const base::Feature ExclusiveAccessManager::kSimplifiedUIFeature = {
- "ViewsSimplifiedFullscreenUI",
-#if defined(USE_AURA)
- base::FEATURE_ENABLED_BY_DEFAULT,
-#else
- base::FEATURE_DISABLED_BY_DEFAULT,
-#endif
-};
-
ExclusiveAccessManager::ExclusiveAccessManager(
ExclusiveAccessContext* exclusive_access_context)
: exclusive_access_context_(exclusive_access_context),
@@ -100,7 +92,7 @@ GURL ExclusiveAccessManager::GetExclusiveAccessBubbleURL() const {
// static
bool ExclusiveAccessManager::IsSimplifiedFullscreenUIEnabled() {
- return base::FeatureList::IsEnabled(kSimplifiedUIFeature);
+ return base::FeatureList::IsEnabled(features::kSimplifiedFullscreenUI);
}
void ExclusiveAccessManager::OnTabDeactivated(WebContents* web_contents) {

Powered by Google App Engine
This is Rietveld 408576698