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

Issue 2883563002: Refactor UKM interface for mojo-ification (Closed)

Created:
3 years, 7 months ago by Steven Holte
Modified:
3 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, android-webview-reviews_chromium.org, asvitkine+watch_chromium.org, baxley+watch_chromium.org, blundell+watchlist_chromium.org, browser-components-watch_chromium.org, chromium-reviews, creis+watch_chromium.org, csharrison+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, droger+watchlist_chromium.org, estade+watch_chromium.org, Eugene But (OOO till 7-30), gogerald+paymentswatch_chromium.org, hamelphi, huangml+watch_chromium.org, ios-reviews+web_chromium.org, ios-reviews_chromium.org, ios-reviews+chrome_chromium.org, jam, liaoyuke+watch_chromium.org, loading-reviews+metrics_chromium.org, mahmadi+paymentswatch_chromium.org, marq+watch_chromium.org, mathp+autofillwatch_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, noyau+watch_chromium.org, pkl (ping after 24h if needed), qsr+mojo_chromium.org, rogerm+autofillwatch_chromium.org, rouslan+payments_chromium.org, rouslan+autofill_chromium.org, sdefresne+watchlist_chromium.org, sebsg+autofillwatch_chromium.org, sebsg+paymentswatch_chromium.org, speed-metrics-reviews_chromium.org, vabr+watchlistautofill_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor UKM interface for mojo-ification * ukm::UkmEntry replaced by ukm::mojom::UkmEntry - Several tests updated to look at these entries instead of protos * Created an interface class and updated recording code to use it: UkmService -> UkmRecorder. * Moved code need for implementing that interface from UkmService -> UkmRecorderImpl. * Replaced TestUkmService with TestUkmRecorder, and removed the harness code which became unnecessary. * Moved UkmEntryBuilder to components/ukm/public/ TBR=sebsg,yzshen1,sky,groby BUG=

Patch Set 1 #

Patch Set 2 : v1 #

Patch Set 3 : Move interface to next CL #

Total comments: 26

Patch Set 4 : Fix nits #

Patch Set 5 : Rebase #

Patch Set 6 : Fix sid signedness #

Patch Set 7 : PRId64 #

Patch Set 8 : missing include #

Patch Set 9 : Fix ios #

Patch Set 10 : Fix uma_session_stats.cc #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1177 lines, -1169 lines) Patch
M android_webview/browser/aw_autofill_client.h View 1 chunk +1 line, -1 line 0 comments Download
M android_webview/browser/aw_autofill_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/metrics/uma_session_stats.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/browser_process.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer.cc View 6 chunks +15 lines, -15 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/ukm_page_load_metrics_observer_unittest.cc View 1 8 chunks +98 lines, -130 lines 0 comments Download
M chrome/browser/payments/chrome_payment_request_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/payments/chrome_payment_request_delegate.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/plugins/plugin_info_message_filter.h View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/plugins/plugin_info_message_filter.cc View 4 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/translate/translate_ranker_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/base/testing_browser_process.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/test/base/testing_browser_process.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M components/autofill/core/browser/autofill_client.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 2 3 4 5 chunks +6 lines, -5 lines 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 2 3 4 9 chunks +28 lines, -46 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics.h View 1 2 3 4 4 chunks +8 lines, -7 lines 2 comments Download
M components/autofill/core/browser/autofill_metrics.cc View 1 2 3 4 13 chunks +36 lines, -29 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics_unittest.cc View 1 2 3 4 45 chunks +144 lines, -171 lines 0 comments Download
M components/autofill/core/browser/form_structure.h View 2 chunks +3 lines, -3 lines 0 comments Download
M components/autofill/core/browser/form_structure.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M components/autofill/core/browser/test_autofill_client.h View 4 chunks +4 lines, -6 lines 0 comments Download
M components/autofill/core/browser/test_autofill_client.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/metrics/proto/ukm/entry.proto View 1 chunk +1 line, -1 line 0 comments Download
M components/metrics/proto/ukm/source.proto View 1 chunk +1 line, -1 line 0 comments Download
M components/payments/content/payment_request.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/payments/core/autofill_payment_instrument_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/payments/core/journey_logger.h View 3 chunks +3 lines, -3 lines 0 comments Download
M components/payments/core/journey_logger.cc View 1 2 3 4 3 chunks +10 lines, -9 lines 0 comments Download
M components/payments/core/journey_logger_unittest.cc View 25 chunks +39 lines, -60 lines 0 comments Download
M components/payments/core/payment_request_delegate.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M components/payments/core/test_payment_request_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M components/payments/core/test_payment_request_delegate.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/translate/core/browser/translate_ranker_impl.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M components/translate/core/browser/translate_ranker_impl.cc View 1 2 3 4 3 chunks +8 lines, -8 lines 0 comments Download
M components/translate/core/browser/translate_ranker_impl_unittest.cc View 1 2 3 4 5 chunks +7 lines, -9 lines 0 comments Download
M components/ukm/BUILD.gn View 1 2 3 chunks +10 lines, -6 lines 0 comments Download
M components/ukm/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/ukm/debug_page/debug_page.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -4 lines 0 comments Download
A components/ukm/public/BUILD.gn View 2 1 chunk +24 lines, -0 lines 0 comments Download
A components/ukm/public/interfaces/BUILD.gn View 1 chunk +15 lines, -0 lines 0 comments Download
A components/ukm/public/interfaces/OWNERS View 1 chunk +2 lines, -0 lines 0 comments Download
A components/ukm/public/interfaces/ukm_interface.mojom View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
A + components/ukm/public/ukm_entry_builder.h View 2 chunks +12 lines, -15 lines 0 comments Download
A components/ukm/public/ukm_entry_builder.cc View 1 chunk +32 lines, -0 lines 0 comments Download
A components/ukm/public/ukm_recorder.h View 1 2 3 1 chunk +97 lines, -0 lines 0 comments Download
A components/ukm/public/ukm_recorder.cc View 1 chunk +34 lines, -0 lines 0 comments Download
A components/ukm/test_ukm_recorder.h View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
A components/ukm/test_ukm_recorder.cc View 1 2 3 1 chunk +67 lines, -0 lines 0 comments Download
D components/ukm/test_ukm_service.h View 1 chunk +0 lines, -57 lines 0 comments Download
D components/ukm/test_ukm_service.cc View 1 chunk +0 lines, -73 lines 0 comments Download
D components/ukm/ukm_entry.h View 1 chunk +0 lines, -50 lines 0 comments Download
D components/ukm/ukm_entry.cc View 1 chunk +0 lines, -31 lines 0 comments Download
D components/ukm/ukm_entry_builder.h View 1 chunk +0 lines, -54 lines 0 comments Download
D components/ukm/ukm_entry_builder.cc View 1 chunk +0 lines, -28 lines 0 comments Download
A components/ukm/ukm_recorder_impl.h View 1 2 3 1 chunk +72 lines, -0 lines 0 comments Download
A components/ukm/ukm_recorder_impl.cc View 1 2 3 1 chunk +175 lines, -0 lines 0 comments Download
M components/ukm/ukm_service.h View 1 6 chunks +3 lines, -81 lines 0 comments Download
M components/ukm/ukm_service.cc View 8 chunks +3 lines, -158 lines 0 comments Download
M components/ukm/ukm_service_unittest.cc View 18 chunks +68 lines, -38 lines 0 comments Download
M components/ukm/ukm_source.h View 2 chunks +5 lines, -3 lines 0 comments Download
M ios/chrome/browser/application_context.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ios/chrome/browser/application_context_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/application_context_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -3 lines 0 comments Download
M ios/chrome/browser/translate/translate_ranker_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/autofill/autofill_client_ios.h View 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/autofill/autofill_client_ios.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/test/testing_application_context.h View 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/test/testing_application_context.mm View 1 chunk +1 line, -1 line 0 comments Download
M ios/web_view/internal/translate/web_view_translate_ranker_factory.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 45 (32 generated)
Steven Holte
oysteine, here's a first draft of the Mojo interface for UKM. I'll probably split this ...
3 years, 7 months ago (2017-05-15 20:07:31 UTC) #3
oystein (OOO til 10th of July)
On 2017/05/15 at 20:07:31, holte wrote: > oysteine, here's a first draft of the Mojo ...
3 years, 7 months ago (2017-05-15 22:13:26 UTC) #4
Steven Holte
On 2017/05/15 22:13:26, oystein wrote: > On 2017/05/15 at 20:07:31, holte wrote: > > oysteine, ...
3 years, 7 months ago (2017-05-15 23:20:52 UTC) #6
Steven Holte
+yzshen for DEP on mojo/public from components/ukm Note the follow up to actually expose the ...
3 years, 7 months ago (2017-05-17 17:53:31 UTC) #8
oystein (OOO til 10th of July)
lgtm w/ nits, nice! https://codereview.chromium.org/2883563002/diff/40001/components/ukm/public/ukm_recorder.h File components/ukm/public/ukm_recorder.h (right): https://codereview.chromium.org/2883563002/diff/40001/components/ukm/public/ukm_recorder.h#newcode23 components/ukm/public/ukm_recorder.h:23: } // namespace autofill nit: ...
3 years, 7 months ago (2017-05-17 18:25:07 UTC) #10
Steven Holte
https://codereview.chromium.org/2883563002/diff/40001/components/ukm/public/ukm_recorder.h File components/ukm/public/ukm_recorder.h (right): https://codereview.chromium.org/2883563002/diff/40001/components/ukm/public/ukm_recorder.h#newcode23 components/ukm/public/ukm_recorder.h:23: } // namespace autofill On 2017/05/17 18:25:06, oystein wrote: ...
3 years, 7 months ago (2017-05-17 20:44:32 UTC) #11
Steven Holte
+sky for browser process ukm_service -> ukm_recorder accessors OWNERS for UKM metrics +sebsg for autofill ...
3 years, 7 months ago (2017-05-17 23:00:17 UTC) #28
sebsg
That's pretty nice! Autofill & payments/journey_logger lgtm % a very small comment. https://codereview.chromium.org/2883563002/diff/140002/components/autofill/core/browser/autofill_metrics.h File components/autofill/core/browser/autofill_metrics.h ...
3 years, 7 months ago (2017-05-18 15:54:10 UTC) #40
sky
LGTM
3 years, 7 months ago (2017-05-18 16:56:26 UTC) #41
oystein (OOO til 10th of July)
ping groby@ and @yzshen holte@ went OOO so I'm taking over landing his CL; new ...
3 years, 7 months ago (2017-05-18 22:06:30 UTC) #42
yzshen1
On 2017/05/18 22:06:30, oystein wrote: > ping groby@ and @yzshen > > holte@ went OOO ...
3 years, 7 months ago (2017-05-18 22:21:18 UTC) #43
groby-ooo-7-16
components/translate LGTM as a purely mechanical change cc hamelphi as FYI, since ranker is only ...
3 years, 7 months ago (2017-05-22 17:22:57 UTC) #44
oystein (OOO til 10th of July)
3 years, 7 months ago (2017-05-22 21:45:42 UTC) #45
Thanks everyone,

Closing this as I'm landing (and TBRing existing LGTMs) in
https://codereview.chromium.org/2893943004 on behalf of holte@ who's OOO.

Powered by Google App Engine
This is Rietveld 408576698