Commit 9b7b710a authored by Wei Lee's avatar Wei Lee Committed by Chromium LUCI CQ

[CCA] Hide maximize button for intent instance under tablet mode

Since the maximize button under tablet mode does not work.

Bug: b/175322338
Test: Manually
Change-Id: I9e8f21c81b33d5e964f95e2fc259e88eea8bcdef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2622365
Auto-Submit: Wei Lee <wtlee@chromium.org>
Reviewed-by: default avatarShik Chen <shik@chromium.org>
Commit-Queue: Shik Chen <shik@chromium.org>
Commit-Queue: Wei Lee <wtlee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#842423}
parent 1736246b
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include <vector> #include <vector>
#include "ash/public/cpp/tablet_mode.h"
#include "base/files/file_path.h" #include "base/files/file_path.h"
#include "base/system/sys_info.h" #include "base/system/sys_info.h"
#include "chrome/browser/apps/app_service/app_service_proxy.h" #include "chrome/browser/apps/app_service/app_service_proxy.h"
...@@ -53,7 +54,7 @@ ui::ModalType ChromeCameraAppUIDelegate::CameraAppDialog::GetDialogModalType() ...@@ -53,7 +54,7 @@ ui::ModalType ChromeCameraAppUIDelegate::CameraAppDialog::GetDialogModalType()
} }
bool ChromeCameraAppUIDelegate::CameraAppDialog::CanMaximizeDialog() const { bool ChromeCameraAppUIDelegate::CameraAppDialog::CanMaximizeDialog() const {
return true; return !ash::TabletMode::Get()->InTabletMode();
} }
void ChromeCameraAppUIDelegate::CameraAppDialog::GetDialogSize( void ChromeCameraAppUIDelegate::CameraAppDialog::GetDialogSize(
......
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