| Index: chrome/browser/ui/views/tabs/tab_strip.cc
|
| diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
|
| index 321fe2cd1497432896b352dc577f1964c72423d4..6841fd93fa618f6d749327c9241325a1900fb213 100644
|
| --- a/chrome/browser/ui/views/tabs/tab_strip.cc
|
| +++ b/chrome/browser/ui/views/tabs/tab_strip.cc
|
| @@ -1127,6 +1127,16 @@ void TabStrip::MaybeStartDrag(
|
| gfx::Screen::GetScreenFor(widget->GetNativeView())->GetNumDisplays() == 1)
|
| detach_behavior = TabDragController::NOT_DETACHABLE;
|
|
|
| +#if defined(OS_CHROMEOS)
|
| + // TODO(wittman): This is a temporary workaround to avoid crbug.com/275274 and
|
| + // crbug.com/274856 in M30 and should be reverted after merge, as we have a
|
| + // solution to these bugs in trunk.
|
| + //
|
| + // Don't allow detaching if the tab has a WebContentsModalDialogView opened.
|
| + if (controller()->IsTabShowingWebViewModalDialog(GetModelIndexOfTab(tab)))
|
| + detach_behavior = TabDragController::NOT_DETACHABLE;
|
| +#endif
|
| +
|
| #if defined(OS_WIN)
|
| // It doesn't make sense to drag tabs out on Win8's single window Metro mode.
|
| if (win8::IsSingleWindowMetroMode())
|
|
|