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

Issue 1278433002: Eliminate OmniboxMetricsProvider listening to notification (Closed)

Created:
5 years, 4 months ago by blundell
Modified:
5 years, 4 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, sdefresne+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@componentize_omnibox
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Eliminate 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -113 lines) Patch
M chrome/browser/android/omnibox/autocomplete_controller_android.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/metrics/omnibox_metrics_provider.h View 2 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/metrics/omnibox_metrics_provider.cc View 4 chunks +7 lines, -12 lines 0 comments Download
M components/omnibox.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/omnibox/browser/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/omnibox/browser/omnibox_client.h View 1 chunk +9 lines, -5 lines 0 comments Download
M components/omnibox/browser/omnibox_edit_model.cc View 2 chunks +2 lines, -0 lines 0 comments Download
A + components/omnibox/browser/omnibox_event_global_tracker.h View 1 4 chunks +10 lines, -9 lines 0 comments Download
A + components/omnibox/browser/omnibox_event_global_tracker.cc View 1 chunk +1 line, -1 line 0 comments Download
D ios/chrome/browser/omnibox/omnibox_event_global_tracker.h View 1 chunk +0 lines, -48 lines 0 comments Download
D ios/chrome/browser/omnibox/omnibox_event_global_tracker.cc View 1 chunk +0 lines, -24 lines 0 comments Download
M ios/chrome/ios_chrome.gyp View 1 2 1 chunk +0 lines, -4 lines 2 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (11 generated)
blundell
Hi Alexei and Peter, Could you both look over this entire CL? Thanks!
5 years, 4 months ago (2015-08-05 15:11:58 UTC) #2
blundell
friendly ping :)
5 years, 4 months ago (2015-08-06 19:16:23 UTC) #3
Alexei Svitkine (slow)
Seems ok to me. I'll defer to Peter's review for the omnibox bits. https://codereview.chromium.org/1278433002/diff/1/chrome/browser/metrics/omnibox_metrics_provider.cc File ...
5 years, 4 months ago (2015-08-06 19:29:03 UTC) #4
Peter Kasting
LGTM https://codereview.chromium.org/1278433002/diff/1/chrome/browser/metrics/omnibox_metrics_provider.cc File chrome/browser/metrics/omnibox_metrics_provider.cc (right): https://codereview.chromium.org/1278433002/diff/1/chrome/browser/metrics/omnibox_metrics_provider.cc#newcode85 chrome/browser/metrics/omnibox_metrics_provider.cc:85: base::Unretained(this))); On 2015/08/06 19:29:03, Alexei Svitkine wrote: > ...
5 years, 4 months ago (2015-08-06 19:58:22 UTC) #5
blundell
Thanks! https://codereview.chromium.org/1278433002/diff/1/chrome/browser/metrics/omnibox_metrics_provider.cc File chrome/browser/metrics/omnibox_metrics_provider.cc (right): https://codereview.chromium.org/1278433002/diff/1/chrome/browser/metrics/omnibox_metrics_provider.cc#newcode85 chrome/browser/metrics/omnibox_metrics_provider.cc:85: base::Unretained(this))); On 2015/08/06 19:58:22, Peter Kasting wrote: > ...
5 years, 4 months ago (2015-08-06 20:22:21 UTC) #6
Alexei Svitkine (slow)
LGTM https://codereview.chromium.org/1278433002/diff/1/chrome/browser/metrics/omnibox_metrics_provider.cc File chrome/browser/metrics/omnibox_metrics_provider.cc (right): https://codereview.chromium.org/1278433002/diff/1/chrome/browser/metrics/omnibox_metrics_provider.cc#newcode85 chrome/browser/metrics/omnibox_metrics_provider.cc:85: base::Unretained(this))); On 2015/08/06 20:22:21, blundell wrote: > On ...
5 years, 4 months ago (2015-08-06 20:27:28 UTC) #7
blundell
TBR=droger for //ios
5 years, 4 months ago (2015-08-07 06:17:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1278433002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1278433002/20001
5 years, 4 months ago (2015-08-07 06:17:19 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/82471) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 4 months ago (2015-08-07 06:18:38 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1278433002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1278433002/40001
5 years, 4 months ago (2015-08-07 06:23:40 UTC) #17
blundell
miguelg: Can you review //chrome/browser/android? Thanks!
5 years, 4 months ago (2015-08-07 06:26:12 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1278433002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1278433002/60001
5 years, 4 months ago (2015-08-07 07:32:01 UTC) #22
droger
//ios LGTM
5 years, 4 months ago (2015-08-07 07:34:33 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 4 months ago (2015-08-07 08:26:37 UTC) #24
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/8ee1f8e3a1006de449420c6e0d7bbe0c12b23891 Cr-Commit-Position: refs/heads/master@{#342319}
5 years, 4 months ago (2015-08-07 08:27:27 UTC) #25
sdefresne
https://codereview.chromium.org/1278433002/diff/60001/ios/chrome/ios_chrome.gyp File ios/chrome/ios_chrome.gyp (left): https://codereview.chromium.org/1278433002/diff/60001/ios/chrome/ios_chrome.gyp#oldcode275 ios/chrome/ios_chrome.gyp:275: 'browser/open_from_clipboard/create_clipboard_recent_content.h', Why did you remove browser/open_from_clipboard/create_clipboard_recent_content.{h,mm}? Can you revert ...
5 years, 4 months ago (2015-08-07 15:30:09 UTC) #27
blundell
5 years, 4 months ago (2015-08-07 15:34:18 UTC) #28
Message was sent while issue was closed.
https://codereview.chromium.org/1278433002/diff/60001/ios/chrome/ios_chrome.gyp
File ios/chrome/ios_chrome.gyp (left):

https://codereview.chromium.org/1278433002/diff/60001/ios/chrome/ios_chrome.g...
ios/chrome/ios_chrome.gyp:275:
'browser/open_from_clipboard/create_clipboard_recent_content.h',
On 2015/08/07 15:30:09, sdefresne wrote:
> Why did you remove
> browser/open_from_clipboard/create_clipboard_recent_content.{h,mm}?
> Can you revert this change?

Oops, bad rebase. https://codereview.chromium.org/1274213004/

Powered by Google App Engine
This is Rietveld 408576698