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

Issue 1090993003: Move undo files into //components/undo (Closed)

Created:
5 years, 8 months ago by sdefresne
Modified:
5 years, 8 months ago
Reviewers:
droger, tfarina, sky
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, zea+watch_chromium.org, pvalenzuela+watch_chromium.org, tfarina, maxbogue+watch_chromium.org, browser-components-watch_chromium.org, dcheng, plaree+watch_chromium.org, noyau+watch_chromium.org, chromium-apps-reviews_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@utils
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move undo files into //components/undo Create a new component //components/undo and move files from //chrome/browser/undo into the component. Add DEPS, OWNERS files and add dependencies on the new component into chrome/browser/BUILD.gn & chrome/chrome_browser.gypi. Files where moved using tools/git/move_source_files.py and the #include lines updated automatically by the script. BUG=476921 Committed: https://crrev.com/c083d1f4de8537ee81131ddb5d388f2f686fac85 Cr-Commit-Position: refs/heads/master@{#325718}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 3

Patch Set 3 : Fix gn compilation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -1792 lines) Patch
M chrome/browser/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/bookmarks/bookmarks_bridge.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model_factory.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/bookmark_change_processor.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_model_associator.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_context_menu_controller.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_drag_drop.cc View 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/undo/bookmark_renumber_observer.h View 1 chunk +0 lines, -20 lines 0 comments Download
D chrome/browser/undo/bookmark_undo_service.h View 1 chunk +0 lines, -80 lines 0 comments Download
D chrome/browser/undo/bookmark_undo_service.cc View 1 1 chunk +0 lines, -495 lines 0 comments Download
M chrome/browser/undo/bookmark_undo_service_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/undo/bookmark_undo_service_test.cc View 1 chunk +0 lines, -421 lines 0 comments Download
D chrome/browser/undo/bookmark_undo_utils.h View 1 chunk +0 lines, -29 lines 0 comments Download
D chrome/browser/undo/bookmark_undo_utils.cc View 1 chunk +0 lines, -24 lines 0 comments Download
D chrome/browser/undo/undo_manager.h View 1 chunk +0 lines, -134 lines 0 comments Download
D chrome/browser/undo/undo_manager.cc View 1 chunk +0 lines, -224 lines 0 comments Download
D chrome/browser/undo/undo_manager_observer.h View 1 chunk +0 lines, -18 lines 0 comments Download
D chrome/browser/undo/undo_manager_test.cc View 1 chunk +0 lines, -265 lines 0 comments Download
D chrome/browser/undo/undo_operation.h View 1 chunk +0 lines, -26 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 3 chunks +1 line, -9 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 1 chunk +0 lines, -3 lines 0 comments Download
M components/BUILD.gn View 1 2 chunks +2 lines, -0 lines 0 comments Download
M components/OWNERS View 1 chunk +3 lines, -0 lines 0 comments Download
M components/components.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 3 chunks +6 lines, -0 lines 0 comments Download
A components/undo.gypi View 1 chunk +34 lines, -0 lines 0 comments Download
A components/undo/BUILD.gn View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
A components/undo/DEPS View 1 chunk +17 lines, -0 lines 0 comments Download
A + components/undo/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/undo/bookmark_renumber_observer.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/undo/bookmark_undo_service.h View 2 chunks +5 lines, -5 lines 0 comments Download
A + components/undo/bookmark_undo_service.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
A + components/undo/bookmark_undo_service_test.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/undo/bookmark_undo_utils.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/undo/bookmark_undo_utils.cc View 1 chunk +3 lines, -3 lines 0 comments Download
A + components/undo/undo_manager.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/undo/undo_manager.cc View 1 chunk +3 lines, -3 lines 0 comments Download
A + components/undo/undo_manager_observer.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/undo/undo_manager_test.cc View 1 chunk +3 lines, -3 lines 0 comments Download
A + components/undo/undo_operation.h View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
sdefresne
droger: please take a look sky: OWNERS review + new DEPS on //ui/base
5 years, 8 months ago (2015-04-16 16:02:18 UTC) #2
sky
LGTM
5 years, 8 months ago (2015-04-16 16:09:45 UTC) #3
droger
LGTM Do we need a README file? https://codereview.chromium.org/1090993003/diff/20001/components/undo/BUILD.gn File components/undo/BUILD.gn (right): https://codereview.chromium.org/1090993003/diff/20001/components/undo/BUILD.gn#newcode34 components/undo/BUILD.gn:34: "//components/undo", Should ...
5 years, 8 months ago (2015-04-17 09:06:22 UTC) #4
droger
On 2015/04/17 09:06:22, droger wrote: > LGTM > > Do we need a README file? ...
5 years, 8 months ago (2015-04-17 09:07:41 UTC) #5
sdefresne
Other components do not have a README, so I didn't put one. https://codereview.chromium.org/1090993003/diff/20001/components/undo/BUILD.gn File components/undo/BUILD.gn ...
5 years, 8 months ago (2015-04-17 13:52:00 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1090993003/20001
5 years, 8 months ago (2015-04-17 13:52:16 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/62453)
5 years, 8 months ago (2015-04-17 14:22:12 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1090993003/40001
5 years, 8 months ago (2015-04-17 19:25:45 UTC) #14
tfarina
https://codereview.chromium.org/1090993003/diff/20001/components/undo/BUILD.gn File components/undo/BUILD.gn (right): https://codereview.chromium.org/1090993003/diff/20001/components/undo/BUILD.gn#newcode34 components/undo/BUILD.gn:34: "//components/undo", On 2015/04/17 13:52:00, sdefresne wrote: > On 2015/04/17 ...
5 years, 8 months ago (2015-04-17 20:53:15 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 8 months ago (2015-04-17 21:12:53 UTC) #17
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/c083d1f4de8537ee81131ddb5d388f2f686fac85 Cr-Commit-Position: refs/heads/master@{#325718}
5 years, 8 months ago (2015-04-17 21:14:57 UTC) #18
sdefresne
5 years, 8 months ago (2015-04-20 08:42:37 UTC) #19
Message was sent while issue was closed.
On 2015/04/17 20:53:15, tfarina wrote:
> https://codereview.chromium.org/1090993003/diff/20001/components/undo/BUILD.gn
> File components/undo/BUILD.gn (right):
> 
>
https://codereview.chromium.org/1090993003/diff/20001/components/undo/BUILD.g...
> components/undo/BUILD.gn:34: "//components/undo",
> On 2015/04/17 13:52:00, sdefresne wrote:
> > On 2015/04/17 09:06:21, droger wrote:
> > > Should it be ":undo" instead? I don't know if this makes a difference or
> not.
> > 
> > There is no need, as //a/b is the same as //a/b:b.
> 
> I think that is not Roger was suggesting.
> 
> What I think he was suggesting is something like this:
> 
> deps = [
>   ":undo",
>   "//components/bookmarks/test",
> ]
> 
> And yes, I agree with him. This is because the target 'undo' is defined in the
> same BUILD.gn file as unit_tests, so it can refer to it by just ':undo', so
the
> full path is not needed. And this is a standard practice among all other
> BUILD.gn deps we have.
> 
> Would you mind following up with another CL for this?

Oh yes, I misunderstood him. Fixed in https://codereview.chromium.org/1097773005

Powered by Google App Engine
This is Rietveld 408576698