DescriptionEliminate OmniboxMetricsProvider listening to notification
OmniboxMetricsProvider is targeted for sharing with iOS, which means that its
use of //content needs to be eliminated. This is a little tricky, as it
currently listens for the notification that a URL was opend from the omnibox
from all Profiles.
To move away from listening for this notification, this CL makes use of
OmniboxEventGlobalTracker (previously an //ios-specific class).
OmniboxEditModel calls out to the OmniboxEventGlobalTracker singleton when a
URL is opened from the omnibox. Listeners interested in receiving notifications
when a URL is opened in *any* OmniboxEditModel register with the
OmniboxEventGlobalTracker.
This CL changes OmniboxMetricsProvider to make use of the new class instead of
listening for the notification.
BUG=508022
TBR=droger
Committed: https://crrev.com/8ee1f8e3a1006de449420c6e0d7bbe0c12b23891
Cr-Commit-Position: refs/heads/master@{#342319}
Patch Set 1 #
Total comments: 10
Patch Set 2 : Response to review #Patch Set 3 : Rebase #Patch Set 4 : Rebase #
Total comments: 2
Dependent Patchsets: Messages
Total messages: 28 (11 generated)
|