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

Issue 366373002: [Variations] Bring variations_http_header_provider to variations component (Closed)

Created:
6 years, 5 months ago by Mathieu
Modified:
6 years, 5 months ago
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, samarth+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, dominich, jfweitz+watch_chromium.org, David Black, asvitkine+watch_chromium.org, kmadhusu+watch_chromium.org, James Su, Ilya Sherman, Jered
Project:
chromium
Visibility:
Public.

Description

[Variations] Bring variations_http_header_provider to variations component Without this, the class can hardly be used within a component (unless we work around it). Adds a workaround for link failure of components_tests due to infobar component bug (crbug.com/386171). BUG=387751, 382865, 386171 TBR=jam TEST=Variations* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282072

Patch Set 1 #

Patch Set 2 : unused decl #

Patch Set 3 : variations namespace #

Patch Set 4 : test fix #

Patch Set 5 : rebase #

Patch Set 6 : Adding infobar test to workaround link failure #

Patch Set 7 : properly add infobar_test #

Total comments: 2

Patch Set 8 : dummy values #

Patch Set 9 : rebase #

Patch Set 10 : fix BUILD.gn #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -788 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 4 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.cc View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
D chrome/browser/metrics/variations/proto/BUILD.gn View 1 chunk +0 lines, -12 lines 0 comments Download
D chrome/browser/metrics/variations/proto/chrome_experiments.proto View 1 chunk +0 lines, -20 lines 0 comments Download
D chrome/browser/metrics/variations/variations_http_header_provider.h View 1 chunk +0 lines, -115 lines 0 comments Download
D chrome/browser/metrics/variations/variations_http_header_provider.cc View 1 chunk +0 lines, -259 lines 0 comments Download
D chrome/browser/metrics/variations/variations_http_header_provider_unittest.cc View 1 chunk +0 lines, -242 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/search/suggestions/suggestions_service.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -18 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M components/infobars.gypi View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
A components/infobars/test/infobar_test.cc View 1 2 3 4 5 6 7 1 chunk +31 lines, -0 lines 0 comments Download
M components/variations.gypi View 3 chunks +4 lines, -0 lines 4 comments Download
M components/variations/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
M components/variations/proto/BUILD.gn View 1 chunk +1 line, -0 lines 2 comments Download
A + components/variations/proto/chrome_experiments.proto View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/variations/variations_http_header_provider.h View 1 2 3 chunks +5 lines, -7 lines 0 comments Download
A + components/variations/variations_http_header_provider.cc View 1 2 3 chunks +10 lines, -4 lines 0 comments Download
A + components/variations/variations_http_header_provider_unittest.cc View 1 2 3 7 chunks +102 lines, -99 lines 0 comments Download

Messages

Total messages: 55 (0 generated)
Mathieu
Hello, Ilya: Alexei being away, can you look at this? Colin: components/ OWNERS Thanks
6 years, 5 months ago (2014-07-05 13:59:40 UTC) #1
Mathieu
On 2014/07/05 13:59:40, Mathieu Perreault wrote: > Hello, > > Ilya: Alexei being away, can ...
6 years, 5 months ago (2014-07-05 14:09:02 UTC) #2
blundell
//components/components_tests.gyp LGTM
6 years, 5 months ago (2014-07-07 14:08:26 UTC) #3
Mathieu
Latest patchset moves everything over to "variations" namespace per Alexei's prior comment on another change: ...
6 years, 5 months ago (2014-07-07 18:24:54 UTC) #4
jwd
lgtm
6 years, 5 months ago (2014-07-07 19:00:42 UTC) #5
Mathieu
Adding jam@ as TBR to cover gyp changes, and header changes across chrome/ due to ...
6 years, 5 months ago (2014-07-07 19:05:37 UTC) #6
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 5 months ago (2014-07-07 19:05:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/366373002/40001
6 years, 5 months ago (2014-07-07 19:06:34 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-07 20:01:48 UTC) #9
Mathieu
The CQ bit was unchecked by mathp@chromium.org
6 years, 5 months ago (2014-07-07 20:02:28 UTC) #10
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 5 months ago (2014-07-07 20:07:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/366373002/60001
6 years, 5 months ago (2014-07-07 20:08:10 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-07 23:30:03 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-07 23:46:41 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/158765)
6 years, 5 months ago (2014-07-07 23:46:42 UTC) #15
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 5 months ago (2014-07-07 23:54:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/366373002/60001
6 years, 5 months ago (2014-07-07 23:55:06 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-08 00:28:35 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-08 00:35:27 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/158799)
6 years, 5 months ago (2014-07-08 00:35:28 UTC) #20
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 5 months ago (2014-07-08 00:51:01 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/366373002/60001
6 years, 5 months ago (2014-07-08 00:52:45 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-08 01:18:51 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-08 01:27:45 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/158824)
6 years, 5 months ago (2014-07-08 01:27:46 UTC) #25
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 5 months ago (2014-07-08 13:12:53 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/366373002/60001
6 years, 5 months ago (2014-07-08 13:13:25 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-08 13:16:49 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-08 13:19:34 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/90665)
6 years, 5 months ago (2014-07-08 13:19:36 UTC) #30
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 5 months ago (2014-07-08 13:33:08 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/366373002/80001
6 years, 5 months ago (2014-07-08 13:34:35 UTC) #32
Mathieu
The CQ bit was unchecked by mathp@chromium.org
6 years, 5 months ago (2014-07-08 14:05:27 UTC) #33
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 5 months ago (2014-07-08 14:09:10 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/366373002/80001
6 years, 5 months ago (2014-07-08 14:09:25 UTC) #35
Mathieu
+pkasting Hi Peter, see what was added in the last 2 patchsets. blundell@ found this ...
6 years, 5 months ago (2014-07-08 15:53:18 UTC) #36
Peter Kasting
LGTM https://codereview.chromium.org/366373002/diff/120001/components/infobars/test/infobar_test.cc File components/infobars/test/infobar_test.cc (right): https://codereview.chromium.org/366373002/diff/120001/components/infobars/test/infobar_test.cc#newcode22 components/infobars/test/infobar_test.cc:22: kDefaultArrowTargetHeight; Does this need to be nonzero? If ...
6 years, 5 months ago (2014-07-08 18:54:40 UTC) #37
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 5 months ago (2014-07-08 19:00:50 UTC) #38
Mathieu
Thanks, submitting! https://codereview.chromium.org/366373002/diff/120001/components/infobars/test/infobar_test.cc File components/infobars/test/infobar_test.cc (right): https://codereview.chromium.org/366373002/diff/120001/components/infobars/test/infobar_test.cc#newcode22 components/infobars/test/infobar_test.cc:22: kDefaultArrowTargetHeight; On 2014/07/08 18:54:40, Peter Kasting wrote: ...
6 years, 5 months ago (2014-07-08 19:01:12 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/366373002/140001
6 years, 5 months ago (2014-07-08 19:02:37 UTC) #40
Mathieu
The CQ bit was unchecked by mathp@chromium.org
6 years, 5 months ago (2014-07-08 19:04:10 UTC) #41
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 5 months ago (2014-07-09 14:11:22 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/366373002/140001
6 years, 5 months ago (2014-07-09 14:12:17 UTC) #43
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-09 14:17:26 UTC) #44
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-09 14:24:31 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/36600)
6 years, 5 months ago (2014-07-09 14:24:33 UTC) #46
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 5 months ago (2014-07-09 14:32:17 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/366373002/160001
6 years, 5 months ago (2014-07-09 14:33:23 UTC) #48
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 5 months ago (2014-07-09 14:48:28 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/366373002/180001
6 years, 5 months ago (2014-07-09 14:48:55 UTC) #50
commit-bot: I haz the power
Change committed as 282072
6 years, 5 months ago (2014-07-09 17:19:30 UTC) #51
Alexei Svitkine (slow)
https://codereview.chromium.org/366373002/diff/180001/components/variations.gypi File components/variations.gypi (right): https://codereview.chromium.org/366373002/diff/180001/components/variations.gypi#newcode17 components/variations.gypi:17: 'components.gyp:google_core_browser', Sigh, the original intention of this component was ...
6 years, 5 months ago (2014-07-14 14:13:07 UTC) #52
Mathieu
See comments, thanks! https://codereview.chromium.org/366373002/diff/180001/components/variations.gypi File components/variations.gypi (right): https://codereview.chromium.org/366373002/diff/180001/components/variations.gypi#newcode17 components/variations.gypi:17: 'components.gyp:google_core_browser', On 2014/07/14 14:13:07, Alexei Svitkine ...
6 years, 5 months ago (2014-07-14 15:25:14 UTC) #53
blundell
https://codereview.chromium.org/366373002/diff/180001/components/variations.gypi File components/variations.gypi (right): https://codereview.chromium.org/366373002/diff/180001/components/variations.gypi#newcode17 components/variations.gypi:17: 'components.gyp:google_core_browser', On 2014/07/14 15:25:13, Mathieu Perreault wrote: > On ...
6 years, 5 months ago (2014-07-15 06:44:20 UTC) #54
Alexei Svitkine (slow)
6 years, 5 months ago (2014-07-15 13:56:09 UTC) #55
Message was sent while issue was closed.
https://codereview.chromium.org/366373002/diff/180001/components/variations.gypi
File components/variations.gypi (right):

https://codereview.chromium.org/366373002/diff/180001/components/variations.g...
components/variations.gypi:17: 'components.gyp:google_core_browser',
On 2014/07/15 06:44:20, blundell wrote:
> On 2014/07/14 15:25:13, Mathieu Perreault wrote:
> > On 2014/07/14 14:13:07, Alexei Svitkine wrote:
> > > Sigh, the original intention of this component was to be a very minimal
that
> > > depends only on base and the mt19937ar. Now this is pulling in net/ and a
> lot
> > of
> > > other dependencies. :( 
> > 
> > Sorry, didn't know this was objectionable :\
> 
> Alexei, do we want to indirect the call to google_util to go through the
client
> instead? That way we could avoid pulling in the dependency on the google
> component.

Possibly. I'm OK living with this for now until the dependency becomes a
problem. (Originally, this component was created so for ChromeOS system
experiments, but that effort hadn't happened. We've also discussed using this
from chrome_elf which also would like minimal dependencies - but again that
didn't materialize.) Let's leave it as-is for now and re-visit if the dependency
becomes a problem.

Powered by Google App Engine
This is Rietveld 408576698