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

Issue 1530133005: Refactor VariationsHttpHeaderProvider. (Closed)

Created:
5 years ago by Alexei Svitkine (slow)
Modified:
5 years ago
Reviewers:
Lei Zhang, jwd, Cait (Slow)
CC:
chromium-reviews, cbentzel+watch_chromium.org, rouslan+autofill_chromium.org, grt+watch_chromium.org, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org, bondd+autofillwatch_chromium.org, asvitkine+watch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor VariationsHttpHeaderProvider. The goal is to move the bulk of its implementation to the main variations component, so that it can be used by this CL from JNI: https://codereview.chromium.org/1528543003/ Creates variations_http_headers.cc in net that still needs to depend on net, which uses the http header provider internally. Updates callers of the previous API to use the new simpler API that doesn't require going through the singleton by clients. Additionally, also adds variations/synthetic_trials.h and moves the synthetic trials structs from metrics_service.h to the new file. This works around an otherwise circular dependency between metrics and variations, since variations_http_header_provider.cc depends on synthetic trials. TBRs below are for owners of downstream users of the API which is being updated. BUG=530223 TBR=caitkp@chromium.org,thestig@chromium.org Committed: https://crrev.com/9a2798399231b89c9becb3c9ca016da34550ebd2 Cr-Commit-Position: refs/heads/master@{#365991}

Patch Set 1 : #

Patch Set 2 : Fix typo in BUILD file. #

Patch Set 3 : Add missing include to srt_fetcher_win.cc. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+540 lines, -913 lines) Patch
M chrome/browser/android/contextualsearch/contextual_search_delegate.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 3 chunks +7 lines, -11 lines 0 comments Download
M chrome/browser/safe_browsing/srt_fetcher_win.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill.gypi View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/autofill_download_manager.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M components/components_tests.gyp View 2 chunks +3 lines, -2 lines 0 comments Download
M components/feedback.gypi View 1 chunk +1 line, -1 line 0 comments Download
M components/feedback/feedback_uploader_chrome.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/feedback/feedback_uploader_chrome_unittest.cc View 1 chunk +3 lines, -1 line 0 comments Download
M components/metrics/metrics_service.h View 6 chunks +19 lines, -48 lines 0 comments Download
M components/metrics/metrics_service.cc View 4 chunks +6 lines, -14 lines 0 comments Download
M components/metrics/metrics_service_accessor.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/metrics/metrics_service_unittest.cc View 2 chunks +8 lines, -4 lines 0 comments Download
M components/omnibox.gypi View 1 chunk +1 line, -1 line 0 comments Download
M components/omnibox/browser/search_provider.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/omnibox/browser/zero_suggest_provider.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M components/suggestions.gypi View 1 chunk +1 line, -1 line 0 comments Download
M components/suggestions/suggestions_service.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M components/variations.gypi View 3 chunks +7 lines, -3 lines 0 comments Download
M components/variations/BUILD.gn View 1 2 chunks +6 lines, -1 line 0 comments Download
M components/variations/net/BUILD.gn View 1 chunk +2 lines, -2 lines 0 comments Download
D components/variations/net/variations_http_header_provider.h View 1 chunk +0 lines, -130 lines 0 comments Download
D components/variations/net/variations_http_header_provider.cc View 1 chunk +0 lines, -291 lines 0 comments Download
D components/variations/net/variations_http_header_provider_unittest.cc View 1 chunk +0 lines, -238 lines 0 comments Download
A components/variations/net/variations_http_headers.h View 1 chunk +41 lines, -0 lines 0 comments Download
A components/variations/net/variations_http_headers.cc View 1 chunk +98 lines, -0 lines 0 comments Download
A components/variations/net/variations_http_headers_unittest.cc View 1 chunk +111 lines, -0 lines 0 comments Download
A components/variations/synthetic_trials.h View 1 chunk +41 lines, -0 lines 0 comments Download
A + components/variations/synthetic_trials.cc View 1 chunk +7 lines, -5 lines 0 comments Download
A + components/variations/variations_http_header_provider.h View 8 chunks +11 lines, -34 lines 0 comments Download
A + components/variations/variations_http_header_provider.cc View 10 chunks +15 lines, -100 lines 0 comments Download
A components/variations/variations_http_header_provider_unittest.cc View 1 chunk +126 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (16 generated)
Alexei Svitkine (slow)
jwd: PTAL Planning to TBR downstream owners of calling code for the API updates.
5 years ago (2015-12-17 20:58:58 UTC) #9
jwd
lgtm
5 years ago (2015-12-17 22:04:16 UTC) #10
Alexei Svitkine (slow)
+TBR owners for updates to an API that requires updating callers +caitkp@ for components/ +thestig@ ...
5 years ago (2015-12-17 22:11:07 UTC) #14
Alexei Svitkine (slow)
Note: components/variations and components/metrics are not being TBRd and have been reviewed by jwd@
5 years ago (2015-12-17 22:12:26 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1530133005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1530133005/160001
5 years ago (2015-12-17 22:13:09 UTC) #17
Lei Zhang
lgtm
5 years ago (2015-12-17 23:33:23 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/94353)
5 years ago (2015-12-18 00:27:41 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1530133005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1530133005/160001
5 years ago (2015-12-18 01:36:22 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:160001)
5 years ago (2015-12-18 02:35:58 UTC) #24
commit-bot: I haz the power
5 years ago (2015-12-18 02:36:56 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9a2798399231b89c9becb3c9ca016da34550ebd2
Cr-Commit-Position: refs/heads/master@{#365991}

Powered by Google App Engine
This is Rietveld 408576698