| Index: chrome/browser/extensions/api/tabs/windows_event_router.cc
|
| diff --git a/chrome/browser/extensions/api/tabs/windows_event_router.cc b/chrome/browser/extensions/api/tabs/windows_event_router.cc
|
| index 82697203cc40373309d52f4cca3cd8bdb50644b2..450bb9aa81a738fc440bc97ec8e984bc767458ad 100644
|
| --- a/chrome/browser/extensions/api/tabs/windows_event_router.cc
|
| +++ b/chrome/browser/extensions/api/tabs/windows_event_router.cc
|
| @@ -159,7 +159,7 @@ WindowsEventRouter::WindowsEventRouter(Profile* profile)
|
| }
|
|
|
| WindowsEventRouter::~WindowsEventRouter() {
|
| -#if !defined(OS_MACOSX)
|
| +#if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX)
|
| views::WidgetFocusManager::GetInstance()->RemoveFocusChangeListener(this);
|
| #endif
|
| }
|
| @@ -214,7 +214,7 @@ void WindowsEventRouter::OnWindowControllerRemoved(
|
| window_controller, std::move(args));
|
| }
|
|
|
| -#if !defined(OS_MACOSX)
|
| +#if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX)
|
| void WindowsEventRouter::OnNativeFocusChanged(gfx::NativeView focused_now) {
|
| if (!focused_now)
|
| OnActiveWindowChanged(nullptr);
|
|
|