Commit cfccb28c authored by Caroline Rising's avatar Caroline Rising Committed by Commit Bot

Disable extension dragging to the app menu button for new extensions container.

Bug: 959933
Change-Id: I1793b705f647e8e32fedec1b592c59ea840876f5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1745130Reviewed-by: default avatarPeter Boström <pbos@chromium.org>
Commit-Queue: Caroline Rising <corising@chromium.org>
Cr-Commit-Position: refs/heads/master@{#685401}
parent 0f83ff4c
......@@ -17,6 +17,7 @@
#include "chrome/browser/ui/in_product_help/in_product_help.h"
#include "chrome/browser/ui/layout_constants.h"
#include "chrome/browser/ui/toolbar/app_menu_model.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/extensions/browser_action_drag_data.h"
#include "chrome/browser/ui/views/toolbar/app_menu.h"
......@@ -307,6 +308,8 @@ bool BrowserAppMenuButton::AreDropTypesRequired() {
}
bool BrowserAppMenuButton::CanDrop(const ui::OSExchangeData& data) {
if (base::FeatureList::IsEnabled(features::kExtensionsToolbarMenu))
return false;
return BrowserActionDragData::CanDrop(data,
toolbar_view_->browser()->profile());
}
......
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