Remove extension Event::cross_incognito_args in favor of will_dispatch_callback.

Only one event (chrome.windows.onFocusChanged) was using it. This does result in a slight change in behavior. We'll now dispatch an additional onFocusChanged with window_id=-1 when switching focus from non-Chrome to incognito-inaccessible-Chrome. This doesn't seem that bad, especially given we were already sending an extra "focus lost" event when doing the inverse.

BUG=163246
TEST=Install "Tab Inspector" from the extension docs samples page. Open the tab inspector, and an incognito window. Ensure that focusing the incognito window sends a window.onFocusChanged event with windowId=-1.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172106 0039d316-1c4b-4281-b951-d872f2087c98
4 files changed