Commit f9f28bb4 authored by Ahmed Mehfooz's avatar Ahmed Mehfooz Committed by Commit Bot

Fix check for tablet mode navigation buttons

Bug: 1066914
Change-Id: I9b9b0251f296a196271c715792d1c4da0c2120db
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2134928Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Ahmed Mehfooz <amehfooz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#756024}
parent 75d798b8
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/ash_pref_names.h"
#include "ash/public/cpp/notification_utils.h" #include "ash/public/cpp/notification_utils.h"
#include "ash/public/cpp/shelf_config.h"
#include "ash/public/cpp/system_tray_client.h" #include "ash/public/cpp/system_tray_client.h"
#include "ash/session/session_controller_impl.h" #include "ash/session/session_controller_impl.h"
#include "ash/shell.h" #include "ash/shell.h"
...@@ -47,8 +48,7 @@ void GestureEducationNotificationController::OnActiveUserPrefServiceChanged( ...@@ -47,8 +48,7 @@ void GestureEducationNotificationController::OnActiveUserPrefServiceChanged(
PrefService* prefs) { PrefService* prefs) {
if (!tablet_mode_supported_ || if (!tablet_mode_supported_ ||
prefs->GetBoolean(prefs::kGestureEducationNotificationShown) || prefs->GetBoolean(prefs::kGestureEducationNotificationShown) ||
prefs->GetBoolean( ShelfConfig::Get()->ShelfControlsForcedShownForAccessibility()) {
prefs::kAccessibilityTabletModeShelfNavigationButtonsEnabled)) {
return; return;
} }
GenerateGestureEducationNotification(); GenerateGestureEducationNotification();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment