Commit da4ce91a authored by yoz@chromium.org's avatar yoz@chromium.org

Don't dispatch window focus change events to other profiles.

BUG=138901


Review URL: https://chromiumcodereview.appspot.com/10832063

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148985 0039d316-1c4b-4281-b951-d872f2087c98
parent 125bd5c7
......@@ -152,6 +152,10 @@ void WindowEventRouter::OnActiveWindowChanged(
if (!window_profile)
window_profile = previous_focused_profile;
if (!profile_->IsSameProfile(window_profile) ||
!ExtensionSystem::Get(window_profile)->event_router()) {
return;
}
ExtensionSystem::Get(window_profile)->event_router()->
DispatchEventsToRenderersAcrossIncognito(
......
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