-
pnoland authored
Aggregate individual WebContentsObservers to notify sync of sessions changes This CL introduces the SyncSessionsWebContentsRouter and the SyncSessionsRouterTabHelper, which replace the old NotificationServiceSessionsRouter. The SyncSessionsWebContentsRouter aggregates events from the individual TabHelpers, which are scoped to individual tabs, and pushes them to SessionsSyncManager. SyncSessionsWebContentsRouters are given a source tab id property which is set when a tab is created directly from another tab, e.g. by ctrl clicking. Some changes are made to SessionsHelper so that it can continue to correctly wait for tabs to load without using Notifications. R=zea@chromium.org BUG=695241 Review-Url: https://codereview.chromium.org/2753753005 Cr-Commit-Position: refs/heads/master@{#459225}
1901afa5