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

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

Created:
3 years, 7 months ago by oystein (OOO til 10th of July)
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, 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, huangml+watch_chromium.org, ios-reviews+web_chromium.org, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, jam, liaoyuke+watch_chromium.org, loading-reviews+metrics_chromium.org, mahmadi+paymentswatch_chromium.org, marq+watch_chromium.org, mathp+autofillwatch_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 (landing for holte@ who is OOO; original CL is https://codereview.chromium.org/2883563002/ and all lgtms are there) * 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,holte Review-Url: https://codereview.chromium.org/2893943004 Cr-Commit-Position: refs/heads/master@{#473757} Committed: https://chromium.googlesource.com/chromium/src/+/b068f2742e5145f6225a7945771df199f051eec9

Patch Set 1 #

Patch Set 2 : Removed redundant forward declare #

Patch Set 3 : Rebase #

Patch Set 4 : Fixed contextualsearch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1179 lines, -1173 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/contextualsearch/contextual_search_ranker_logger_impl.h View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/android/contextualsearch/contextual_search_ranker_logger_impl.cc View 1 2 3 3 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/android/metrics/uma_session_stats.cc View 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 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 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 8 chunks +98 lines, -130 lines 0 comments Download
M chrome/browser/payments/android/journey_logger_android.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/payments/chrome_payment_request_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/payments/chrome_payment_request_delegate.cc View 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 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 5 chunks +6 lines, -5 lines 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 2 9 chunks +28 lines, -46 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics.h View 1 4 chunks +7 lines, -10 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics.cc View 1 2 13 chunks +36 lines, -29 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics_unittest.cc View 1 2 39 chunks +126 lines, -153 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 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 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M components/payments/core/journey_logger.cc View 1 2 3 chunks +10 lines, -9 lines 0 comments Download
M components/payments/core/journey_logger_unittest.cc View 1 2 25 chunks +39 lines, -59 lines 0 comments Download
M components/payments/core/payment_request_delegate.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/payments/core/test_payment_request_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M components/payments/core/test_payment_request_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/translate/core/browser/translate_ranker_impl.h View 3 chunks +3 lines, -3 lines 0 comments Download
M components/translate/core/browser/translate_ranker_impl.cc View 3 chunks +8 lines, -8 lines 0 comments Download
M components/translate/core/browser/translate_ranker_impl_unittest.cc View 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 chunk +1 line, -0 lines 0 comments Download
M components/ukm/debug_page/debug_page.cc View 2 chunks +3 lines, -4 lines 0 comments Download
A components/ukm/public/BUILD.gn View 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 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 1 chunk +99 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 chunk +43 lines, -0 lines 0 comments Download
A components/ukm/test_ukm_recorder.cc View 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 chunk +72 lines, -0 lines 0 comments Download
A components/ukm/ukm_recorder_impl.cc View 1 chunk +175 lines, -0 lines 0 comments Download
M components/ukm/ukm_service.h View 1 2 6 chunks +4 lines, -83 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 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: 27 (20 generated)
oystein (OOO til 10th of July)
+donnd for chrome/browser/android/contextualsearch
3 years, 7 months ago (2017-05-22 21:24:56 UTC) #13
oystein (OOO til 10th of July)
(Everyone else: please ignore as this is the clone of https://codereview.chromium.org/2885363004/)
3 years, 7 months ago (2017-05-22 21:26:04 UTC) #16
Donn Denman
LGTM for ContextualSearch.
3 years, 7 months ago (2017-05-22 22:30:01 UTC) #18
Donn Denman
BTW, You should change the description to refer to the original CL https://chromiumcodereview.appspot.com/2883563002/ (not https://codereview.chromium.org/2885363004/)
3 years, 7 months ago (2017-05-22 22:37:44 UTC) #19
oystein (OOO til 10th of July)
On 2017/05/22 at 22:37:44, donnd wrote: > BTW, You should change the description to refer ...
3 years, 7 months ago (2017-05-22 22:45:58 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2893943004/60001
3 years, 7 months ago (2017-05-23 00:06:12 UTC) #24
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 00:14:20 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/b068f2742e5145f6225a7945771d...

Powered by Google App Engine
This is Rietveld 408576698