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

Issue 11825011: Componentize visitedlinks to src/components/visitedlink (Closed)

Created:
7 years, 11 months ago by boliu
Modified:
7 years, 11 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, browser-components-watch_chromium.org, Gajen
Visibility:
Public.

Description

Componentize visitedlinks to src/components/visitedlink All visitedlink files moved to src/components/visitedlink/[browser|common|renderer|test] Created static lib targets for browser, common, and renderer. Test files are moved but still uses old test targets in chrome/ Dcommitted due to AllowScopedIO being moved but still triggers presubmit error. Bots are mostly happy. BUG=168716 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178176

Patch Set 1 #

Total comments: 12

Patch Set 2 : Move test files but use old chrome/ targets. #

Patch Set 3 : NOT FOR COMMIT. Removed presubmit warning for adding watchlist etc. #

Patch Set 4 : NOT FOR COMMIT. Removed presubmit warning for adding watchlist etc. (try 2) #

Patch Set 5 : This one ready for review. #

Patch Set 6 : Also remove old DEPS file (recently added) #

Patch Set 7 : Fixed include guard names. Fixed common.gypi. #

Patch Set 8 : Add skia/config include to fix mac build (hopefully?) #

Total comments: 1

Patch Set 9 : Fix include_dirs (too much gyp magic!) #

Patch Set 10 : Move include_dir to write target (stupid me..) #

Patch Set 11 : Add security OWNERS for ipc message. #

Total comments: 3

Patch Set 12 : Rebase #

Patch Set 13 : Add seucirty OWNERS again (got lost in rebase). #

Patch Set 14 : Move gypi up one directory level #

Patch Set 15 : Rebase #

Total comments: 13

Patch Set 16 : Rebase. Address comments from brettw. #

Patch Set 17 : Hopefully fix ios compile. #

Patch Set 18 : Final rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -3168 lines) Patch
M chrome/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/history/DEPS View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/history/history.h View 1 5 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/history/history.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -1 line 0 comments Download
D chrome/browser/visitedlink/DEPS View 1 2 3 4 5 1 chunk +0 lines, -24 lines 0 comments Download
D chrome/browser/visitedlink/OWNERS View 1 chunk +0 lines, -2 lines 0 comments Download
D chrome/browser/visitedlink/visitedlink_delegate.h View 1 1 chunk +0 lines, -52 lines 0 comments Download
D chrome/browser/visitedlink/visitedlink_event_listener.h View 1 chunk +0 lines, -67 lines 0 comments Download
D chrome/browser/visitedlink/visitedlink_event_listener.cc View 1 chunk +0 lines, -216 lines 0 comments Download
D chrome/browser/visitedlink/visitedlink_master.h View 1 chunk +0 lines, -434 lines 0 comments Download
D chrome/browser/visitedlink/visitedlink_master.cc View 1 chunk +0 lines, -965 lines 0 comments Download
D chrome/browser/visitedlink/visitedlink_perftest.cc View 1 1 chunk +0 lines, -198 lines 0 comments Download
D chrome/browser/visitedlink/visitedlink_unittest.cc View 1 1 chunk +0 lines, -759 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +1 line, -2 lines 0 comments Download
M chrome/chrome_renderer.gypi View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -15 lines 0 comments Download
D chrome/common/visitedlink_common.h View 1 chunk +0 lines, -134 lines 0 comments Download
D chrome/common/visitedlink_common.cc View 1 chunk +0 lines, -98 lines 0 comments Download
M chrome/renderer/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -2 lines 0 comments Download
D chrome/renderer/visitedlink_slave.h View 1 chunk +0 lines, -37 lines 0 comments Download
D chrome/renderer/visitedlink_slave.cc View 1 chunk +0 lines, -89 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
A components/visitedlink.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +66 lines, -0 lines 0 comments Download
A + components/visitedlink/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/visitedlink/browser/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/visitedlink/browser/visitedlink_delegate.h View 1 2 3 4 5 6 3 chunks +7 lines, -3 lines 0 comments Download
A + components/visitedlink/browser/visitedlink_event_listener.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +10 lines, -5 lines 0 comments Download
A + components/visitedlink/browser/visitedlink_event_listener.cc View 3 chunks +7 lines, -3 lines 0 comments Download
A + components/visitedlink/browser/visitedlink_master.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +9 lines, -5 lines 0 comments Download
A + components/visitedlink/browser/visitedlink_master.cc View 3 4 3 chunks +7 lines, -3 lines 0 comments Download
A + components/visitedlink/common/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
A + components/visitedlink/common/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/visitedlink/common/visitedlink_common.h View 1 2 3 4 5 6 3 chunks +7 lines, -3 lines 0 comments Download
A + components/visitedlink/common/visitedlink_common.cc View 3 chunks +5 lines, -1 line 0 comments Download
A + components/visitedlink/common/visitedlink_message_generator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -3 lines 0 comments Download
A + components/visitedlink/common/visitedlink_message_generator.cc View 1 chunk +7 lines, -7 lines 0 comments Download
A components/visitedlink/common/visitedlink_messages.h View 1 chunk +29 lines, -0 lines 0 comments Download
A + components/visitedlink/renderer/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -2 lines 0 comments Download
A + components/visitedlink/renderer/visitedlink_slave.h View 1 2 3 4 5 6 2 chunks +8 lines, -4 lines 0 comments Download
A + components/visitedlink/renderer/visitedlink_slave.cc View 2 chunks +6 lines, -2 lines 0 comments Download
A components/visitedlink/test/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -0 lines 0 comments Download
A + components/visitedlink/test/visitedlink_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -1 line 0 comments Download
A + components/visitedlink/test/visitedlink_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +9 lines, -5 lines 0 comments Download
M ipc/ipc_message_start.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
boliu
I haven't tried moving the tests, not sure how hard it is to create a ...
7 years, 11 months ago (2013-01-08 23:42:08 UTC) #1
Jói
Seems reasonable to me to ignore the ScopedAllowIO error since you are just moving code. ...
7 years, 11 months ago (2013-01-09 00:51:44 UTC) #2
boliu
Are you aware of other important build configurations that are not tested on the cq, ...
7 years, 11 months ago (2013-01-09 01:16:40 UTC) #3
Jói
I think the default set of CQ trybots should be sufficient for this change, since ...
7 years, 11 months ago (2013-01-09 18:42:42 UTC) #4
boliu
7 years, 11 months ago (2013-01-10 01:31:06 UTC) #5
boliu
Oops, was not trying to send out mail.. Anyway, Joi: could you do a first ...
7 years, 11 months ago (2013-01-10 01:33:31 UTC) #6
Jói
LGTM
7 years, 11 months ago (2013-01-10 02:01:40 UTC) #7
boliu
brettw,sky: chrome/, and notify I added you guys as owner of all of visitedlink component ...
7 years, 11 months ago (2013-01-10 04:22:36 UTC) #8
jln (very slow on Chromium)
*_messages.h lgtm on the basis that this is a move. https://codereview.chromium.org/11825011/diff/8053/components/visitedlink/common/OWNERS File components/visitedlink/common/OWNERS (right): https://codereview.chromium.org/11825011/diff/8053/components/visitedlink/common/OWNERS#newcode1 ...
7 years, 11 months ago (2013-01-10 05:03:05 UTC) #9
boliu
https://codereview.chromium.org/11825011/diff/8053/components/visitedlink/common/OWNERS File components/visitedlink/common/OWNERS (right): https://codereview.chromium.org/11825011/diff/8053/components/visitedlink/common/OWNERS#newcode1 components/visitedlink/common/OWNERS:1: # Changes to IPC messages require a security review ...
7 years, 11 months ago (2013-01-10 05:53:55 UTC) #10
boliu
brettw,sky: ping!
7 years, 11 months ago (2013-01-11 01:36:39 UTC) #11
boliu
On 2013/01/11 01:36:39, boliu wrote: > brettw,sky: ping! ping! x2
7 years, 11 months ago (2013-01-14 21:55:23 UTC) #12
sky
Adding multiple reviewers for the same code is a recipe for everyone to ignore. Brett ...
7 years, 11 months ago (2013-01-14 22:20:33 UTC) #13
brettw
LGTM, just some nits. https://codereview.chromium.org/11825011/diff/18001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/11825011/diff/18001/chrome/browser/history/history_backend.cc#newcode51 chrome/browser/history/history_backend.cc:51: using components::VisitedLinkDelegate; I think this ...
7 years, 11 months ago (2013-01-18 21:58:47 UTC) #14
boliu
Will wait for the tryjobs go green and dcommit due to the presubmit warning about ...
7 years, 11 months ago (2013-01-18 22:42:15 UTC) #15
boliu
Joi: Please review components/visitedlink.gypi again, I had to exclude visitedlink_renderer on ios due to compile ...
7 years, 11 months ago (2013-01-18 23:57:33 UTC) #16
Jói
LGTM I don't see why the fact that some .gypi files might need conditional compilation ...
7 years, 11 months ago (2013-01-21 10:32:07 UTC) #17
boliu
dcommitted. Most bot runs are on PS16. Hoping it won't break anything... On 2013/01/21 10:32:07, ...
7 years, 11 months ago (2013-01-23 00:51:23 UTC) #18
Jói
7 years, 11 months ago (2013-01-23 10:05:06 UTC) #19
> [...] So in this case, if
> there
> were a separate visitedlink_renderer.gyp, then that gyp file would not be
> included by ios in the first place so there would be no need for the guards.

I think you could actually use a conditional block in components.gyp
to fully exclude components_visitedlink.gypi on iOS, instead of having
the conditional block in components_visitedlink.gypi; this seems like
it would achieve nearly the same thing.  Not sure it's cleaner than
what you have now, though.

In either case, I think a single components.gyp is fine, and it echoes
the structure of .gyp files from other top-level directories.

Cheers,
Jói



On Wed, Jan 23, 2013 at 12:51 AM,  <boliu@chromium.org> wrote:
> dcommitted. Most bot runs are on PS16. Hoping it won't break anything...
>
>
> On 2013/01/21 10:32:07, Jói wrote:
>>
>> LGTM
>
>
>> I don't see why the fact that some .gypi files might need conditional
>> compilation would impact whether or not we should use a single
>> //components/components.gyp file?
>
>
>> Cheers,
>> Jói
>
>
> As I understand it, gyp will process all targets and its dependencies in a
> gyp
> file, even if it is not needed from the all target. So in this case, if
> there
> were a separate visitedlink_renderer.gyp, then that gyp file would not be
> included by ios in the first place so there would be no need for the guards.
>
> It feels like components would be structured such that different OSs can
> pick
> and choose which components to include without modifying the component gyp
> files.
>
> I don't feel too strongly either way, just that I started components.gyp,
> and
> here is a point against that decision.
>
> https://codereview.chromium.org/11825011/

Powered by Google App Engine
This is Rietveld 408576698