Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4393)

Unified Diff: chrome/browser/extensions/api/tabs/windows_event_router.cc

Issue 2261253003: Add chrome/browser/extensions to "GN check" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dumb typo Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « chrome/browser/extensions/api/tabs/windows_event_router.h ('k') | chrome/browser/extensions/bookmark_app_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698