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

Issue 23097007: Create variations target that depends on base. (Closed)

Created:
7 years, 4 months ago by Alexei Svitkine (slow)
Modified:
7 years, 3 months ago
Reviewers:
jwd, Jói, sky
CC:
chromium-reviews, brettw, darin (slow to review)
Visibility:
Public.

Description

Create a variations component, so that it can be re-used. Moving this code out of chrome/ paves the way for server-controlled system field trials on ChromeOS. This allows building a new ChromeOS daemon binary that depends on the new variations target, without needing to depend on all of chrome/. This CL moves several files from chrome/common/metrics and chrome/browser/metrics into a separate component/variations target and updates all the include paths referencing these. It does not do additional cleanup, such as changing namespaces - this is left for a follow-up cleanup CL. BUG=266007 TEST=Existing unit tests. R=joi@chromium.org, jwd@chromium.org, sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220339

Patch Set 1 : #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -2594 lines) Patch
M chrome/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_result_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/metrics_private/metrics_apitest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/metrics_private/metrics_private_api.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/most_visited_tiles_experiment_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/metrics/proto/study.proto View 1 2 3 1 chunk +0 lines, -162 lines 0 comments Download
D chrome/browser/metrics/proto/trials_seed.proto View 1 2 3 1 chunk +0 lines, -22 lines 0 comments Download
M chrome/browser/metrics/variations/variations_http_header_provider.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/variations/variations_http_header_provider.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
D chrome/browser/metrics/variations/variations_seed_processor.h View 1 2 3 1 chunk +0 lines, -96 lines 0 comments Download
D chrome/browser/metrics/variations/variations_seed_processor.cc View 1 2 3 1 chunk +0 lines, -343 lines 0 comments Download
D chrome/browser/metrics/variations/variations_seed_processor_unittest.cc View 1 2 3 1 chunk +0 lines, -531 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/omnibox/omnibox_field_trial.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/omnibox/omnibox_field_trial_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search/search_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/spellchecker/feedback_sender_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_prompt_controller.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 3 chunks +0 lines, -17 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 3 chunks +1 line, -7 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/common/metrics/caching_permuted_entropy_provider.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
D chrome/common/metrics/entropy_provider.h View 1 2 3 1 chunk +0 lines, -94 lines 0 comments Download
D chrome/common/metrics/entropy_provider.cc View 1 2 3 1 chunk +0 lines, -119 lines 0 comments Download
D chrome/common/metrics/entropy_provider_unittest.cc View 1 2 3 1 chunk +0 lines, -369 lines 0 comments Download
D chrome/common/metrics/metrics_util.h View 1 2 3 1 chunk +0 lines, -20 lines 0 comments Download
D chrome/common/metrics/metrics_util.cc View 1 2 3 1 chunk +0 lines, -27 lines 0 comments Download
D chrome/common/metrics/metrics_util_unittest.cc View 1 2 3 1 chunk +0 lines, -30 lines 0 comments Download
D chrome/common/metrics/variations/variations_associated_data.h View 1 2 3 1 chunk +0 lines, -155 lines 0 comments Download
D chrome/common/metrics/variations/variations_associated_data.cc View 1 2 3 1 chunk +0 lines, -236 lines 0 comments Download
D chrome/common/metrics/variations/variations_associated_data_unittest.cc View 1 2 3 1 chunk +0 lines, -310 lines 0 comments Download
M chrome/common/metrics/variations/variations_util.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/metrics/variations/variations_util_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/autofill/form_autofill_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/OWNERS View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gypi View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
A components/variations.gypi View 1 1 chunk +47 lines, -0 lines 0 comments Download
A components/variations/OWNERS View 1 1 chunk +3 lines, -0 lines 0 comments Download
A + components/variations/entropy_provider.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A + components/variations/entropy_provider.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
A + components/variations/entropy_provider_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
A + components/variations/metrics_util.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A + components/variations/metrics_util.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + components/variations/metrics_util_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
A + components/variations/proto/study.proto View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/variations/proto/trials_seed.proto View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/variations/variations_associated_data.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
A + components/variations/variations_associated_data.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
A + components/variations/variations_associated_data_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + components/variations/variations_seed_processor.h View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
A + components/variations/variations_seed_processor.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
A + components/variations/variations_seed_processor_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Alexei Svitkine (slow)
Hey Darin, Could you take a look? This is adding a top-level variations/ directory, so ...
7 years, 4 months ago (2013-08-23 14:41:40 UTC) #1
brettw
"variations" doesn't mean much to me just looking at the toplevel. Do you think there ...
7 years, 4 months ago (2013-08-23 21:22:46 UTC) #2
darin (slow to review)
"metrics" seems like a nice top level name. On Aug 23, 2013 2:22 PM, <brettw@chromium.org> ...
7 years, 4 months ago (2013-08-23 22:17:15 UTC) #3
darin (slow to review)
On 2013/08/23 22:17:15, darin wrote: > "metrics" seems like a nice top level name. > ...
7 years, 4 months ago (2013-08-24 05:27:56 UTC) #4
Alexei Svitkine (slow)
On 2013/08/24 05:27:56, darin wrote: > On 2013/08/23 22:17:15, darin wrote: > > "metrics" seems ...
7 years, 4 months ago (2013-08-24 14:42:07 UTC) #5
Jói
Here's what I said in the earlier conversation; I think this echoes what John said ...
7 years, 4 months ago (2013-08-25 16:04:18 UTC) #6
jam
cool, sounds like we're on the same page. btw I just remembered that we also ...
7 years, 4 months ago (2013-08-25 16:18:37 UTC) #7
Alexei Svitkine (slow)
On 2013/08/25 16:18:37, jam wrote: > btw I just remembered that we also have src/base/metrics. ...
7 years, 4 months ago (2013-08-26 00:12:43 UTC) #8
jam
On 2013/08/26 00:12:43, Alexei Svitkine wrote: > On 2013/08/25 16:18:37, jam wrote: > > btw ...
7 years, 3 months ago (2013-08-26 14:14:32 UTC) #9
Alexei Svitkine (slow)
On Mon, Aug 26, 2013 at 10:14 AM, <jam@chromium.org> wrote: > On 2013/08/26 00:12:43, Alexei ...
7 years, 3 months ago (2013-08-26 14:22:58 UTC) #10
Alexei Svitkine (slow)
Brett, Darin: What do you think about whether it should go in base/metrics/variations or components/variations? ...
7 years, 3 months ago (2013-08-26 17:50:22 UTC) #11
darin (slow to review)
I think the protobuf dependency suggests that this does not belong in base. Let's go ...
7 years, 3 months ago (2013-08-26 18:11:12 UTC) #12
Alexei Svitkine (slow)
All right, I'll go ahead and update this CL to move the new target go ...
7 years, 3 months ago (2013-08-26 18:16:01 UTC) #13
Alexei Svitkine (slow)
+jwd I updated the CL to make this a component. Jesse, can you review the ...
7 years, 3 months ago (2013-08-27 16:42:59 UTC) #14
jwd
lgtm
7 years, 3 months ago (2013-08-28 20:21:47 UTC) #15
Alexei Svitkine (slow)
Joi, could you review the move to components/? Thanks!
7 years, 3 months ago (2013-08-28 20:28:17 UTC) #16
Jói
Looks like you're using SVN and did not use "svn move" to move the sources, ...
7 years, 3 months ago (2013-08-29 09:37:33 UTC) #17
Alexei Svitkine (slow)
> Could you use "svn move" so that we keep history? Done. https://codereview.chromium.org/23097007/diff/242001/components/variations/OWNERS File components/variations/OWNERS ...
7 years, 3 months ago (2013-08-29 15:36:57 UTC) #18
Jói
//components LGTM with a nit/question. https://codereview.chromium.org/23097007/diff/220001/components/variations/entropy_provider.h File components/variations/entropy_provider.h (right): https://codereview.chromium.org/23097007/diff/220001/components/variations/entropy_provider.h#newcode1 components/variations/entropy_provider.h:1: // Copyright 2013 The ...
7 years, 3 months ago (2013-08-29 15:41:52 UTC) #19
Alexei Svitkine (slow)
+sky for chrome/ OWNERS approval https://codereview.chromium.org/23097007/diff/220001/components/variations/entropy_provider.h File components/variations/entropy_provider.h (right): https://codereview.chromium.org/23097007/diff/220001/components/variations/entropy_provider.h#newcode1 components/variations/entropy_provider.h:1: // Copyright 2013 The ...
7 years, 3 months ago (2013-08-29 15:56:52 UTC) #20
sky
LGTM
7 years, 3 months ago (2013-08-29 17:56:10 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/23097007/215001
7 years, 3 months ago (2013-08-29 17:59:01 UTC) #22
commit-bot: I haz the power
Failed to apply patch for components/variations/entropy_provider.cc: While running patch -p0 --forward --force --no-backup-if-mismatch; can't find ...
7 years, 3 months ago (2013-08-29 17:59:31 UTC) #23
Alexei Svitkine (slow)
will commit manually, since the cq doesn't seem to like the svn mv'd diffs
7 years, 3 months ago (2013-08-29 18:02:09 UTC) #24
Alexei Svitkine (slow)
7 years, 3 months ago (2013-08-29 18:03:27 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 manually as r220339 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698