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

Issue 228393004: Create bookmarks component with names of bookmark preferences (Closed)

Created:
6 years, 8 months ago by sdefresne
Modified:
6 years, 8 months ago
Reviewers:
Lei Zhang, tfarina, blundell
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, tfarina, dbeam+watch-ntp_chromium.org, browser-components-watch_chromium.org, dcheng, haitaol+watch_chromium.org, rginda+watch_chromium.org, yoshiki+watch_chromium.org, estade+watch_chromium.org, chromium-apps-reviews_chromium.org, pedrosimonetti+watch_chromium.org, James Su, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Create bookmarks component with names of bookmark preferences Introduce a new bookmarks component and update DEPS for chrome/browser and chrome/chrome_browser.gypi. Move names of bookmark preferences from chrome/common/pref_names.{cc,h} to components/bookmarks/core/common/bookmark_pref_names.{cc,h} and add an include in chrome/common/pref_names.h to limit modification to the client files. BUG=360613 TBR=sky Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263016

Patch Set 1 #

Total comments: 4

Patch Set 2 : Re-upload with --no-find-copies #

Total comments: 6

Patch Set 3 : Fix copyright notice #

Patch Set 4 : Add empty line at beginning and end of namespace #

Total comments: 5

Patch Set 5 : Address blundell's comments #

Total comments: 10

Patch Set 6 : Fix includes and DEPS #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -28 lines) Patch
M chrome/browser/DEPS View 1 chunk +1 line, -0 lines 1 comment Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 1 comment Download
M chrome/common/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 4 chunks +1 line, -7 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 3 chunks +0 lines, -21 lines 0 comments Download
A components/bookmarks.gypi View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
A components/bookmarks/DEPS View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
A components/bookmarks/OWNERS View 1 1 chunk +8 lines, -0 lines 0 comments Download
A components/bookmarks/core/common/bookmark_pref_names.h View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
A components/bookmarks/core/common/bookmark_pref_names.cc View 1 2 3 4 5 1 chunk +30 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 1 chunk +3 lines, -0 lines 1 comment Download

Messages

Total messages: 20 (0 generated)
sdefresne
Please have a look.
6 years, 8 months ago (2014-04-08 15:51:00 UTC) #1
tfarina
https://codereview.chromium.org/228393004/diff/1/components/bookmarks.gypi File components/bookmarks.gypi (right): https://codereview.chromium.org/228393004/diff/1/components/bookmarks.gypi#newcode1 components/bookmarks.gypi:1: # Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 8 months ago (2014-04-08 16:11:49 UTC) #2
sdefresne
https://codereview.chromium.org/228393004/diff/1/components/bookmarks.gypi File components/bookmarks.gypi (right): https://codereview.chromium.org/228393004/diff/1/components/bookmarks.gypi#newcode1 components/bookmarks.gypi:1: # Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 8 months ago (2014-04-08 16:19:42 UTC) #3
tfarina
I only looked at the files under components/ and I have only tiny nits. lgtm ...
6 years, 8 months ago (2014-04-08 16:30:34 UTC) #4
sdefresne
https://codereview.chromium.org/228393004/diff/20001/components/bookmarks/bookmark_pref_names.h File components/bookmarks/bookmark_pref_names.h (right): https://codereview.chromium.org/228393004/diff/20001/components/bookmarks/bookmark_pref_names.h#newcode1 components/bookmarks/bookmark_pref_names.h:1: // Copyright (c) 2014 The Chromium Authors. All rights ...
6 years, 8 months ago (2014-04-08 22:04:42 UTC) #5
blundell
https://codereview.chromium.org/228393004/diff/60001/chrome/browser/android/bookmarks/bookmarks_bridge.cc File chrome/browser/android/bookmarks/bookmarks_bridge.cc (right): https://codereview.chromium.org/228393004/diff/60001/chrome/browser/android/bookmarks/bookmarks_bridge.cc#newcode17 chrome/browser/android/bookmarks/bookmarks_bridge.cc:17: #include "components/bookmarks/bookmark_pref_names.h" Rather than adding this include everywhere, the ...
6 years, 8 months ago (2014-04-09 09:13:00 UTC) #6
sdefresne
PTAL https://codereview.chromium.org/228393004/diff/60001/chrome/browser/android/bookmarks/bookmarks_bridge.cc File chrome/browser/android/bookmarks/bookmarks_bridge.cc (right): https://codereview.chromium.org/228393004/diff/60001/chrome/browser/android/bookmarks/bookmarks_bridge.cc#newcode17 chrome/browser/android/bookmarks/bookmarks_bridge.cc:17: #include "components/bookmarks/bookmark_pref_names.h" On 2014/04/09 09:13:00, blundell wrote: > ...
6 years, 8 months ago (2014-04-09 13:16:06 UTC) #7
tfarina
https://codereview.chromium.org/228393004/diff/60001/chrome/browser/android/bookmarks/bookmarks_bridge.cc File chrome/browser/android/bookmarks/bookmarks_bridge.cc (right): https://codereview.chromium.org/228393004/diff/60001/chrome/browser/android/bookmarks/bookmarks_bridge.cc#newcode17 chrome/browser/android/bookmarks/bookmarks_bridge.cc:17: #include "components/bookmarks/bookmark_pref_names.h" On 2014/04/09 09:13:00, blundell wrote: > Rather ...
6 years, 8 months ago (2014-04-09 15:27:24 UTC) #8
tfarina
https://codereview.chromium.org/228393004/diff/80001/chrome/common/pref_names.h File chrome/common/pref_names.h (right): https://codereview.chromium.org/228393004/diff/80001/chrome/common/pref_names.h#newcode15 chrome/common/pref_names.h:15: #include "components/bookmarks/core/common/bookmark_pref_names.h" not lgtm, because of this change. +Lei, ...
6 years, 8 months ago (2014-04-09 15:28:25 UTC) #9
blundell
On 2014/04/09 15:27:24, tfarina wrote: > https://codereview.chromium.org/228393004/diff/60001/chrome/browser/android/bookmarks/bookmarks_bridge.cc > File chrome/browser/android/bookmarks/bookmarks_bridge.cc (right): > > https://codereview.chromium.org/228393004/diff/60001/chrome/browser/android/bookmarks/bookmarks_bridge.cc#newcode17 > ...
6 years, 8 months ago (2014-04-09 15:32:24 UTC) #10
Lei Zhang
https://codereview.chromium.org/228393004/diff/80001/chrome/common/pref_names.h File chrome/common/pref_names.h (right): https://codereview.chromium.org/228393004/diff/80001/chrome/common/pref_names.h#newcode15 chrome/common/pref_names.h:15: #include "components/bookmarks/core/common/bookmark_pref_names.h" On 2014/04/09 15:28:26, tfarina wrote: > not ...
6 years, 8 months ago (2014-04-09 17:58:44 UTC) #11
tfarina
OK, since Lei has more authority than me here, you have my ack. Since it ...
6 years, 8 months ago (2014-04-09 18:26:52 UTC) #12
blundell
LGTM with the below fixes Consider using tools/git/move_source_file.py and tools/git/mass-rename.py https://codereview.chromium.org/228393004/diff/80001/chrome/browser/bookmarks/DEPS File chrome/browser/bookmarks/DEPS (right): https://codereview.chromium.org/228393004/diff/80001/chrome/browser/bookmarks/DEPS#newcode12 ...
6 years, 8 months ago (2014-04-10 13:20:18 UTC) #13
sdefresne
Thank you for the reviews. https://codereview.chromium.org/228393004/diff/80001/chrome/browser/bookmarks/DEPS File chrome/browser/bookmarks/DEPS (right): https://codereview.chromium.org/228393004/diff/80001/chrome/browser/bookmarks/DEPS#newcode12 chrome/browser/bookmarks/DEPS:12: "+components/bookmarks", On 2014/04/10 13:20:19, ...
6 years, 8 months ago (2014-04-10 15:07:44 UTC) #14
sdefresne
The CQ bit was checked by sdefresne@chromium.org
6 years, 8 months ago (2014-04-10 15:08:19 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/228393004/100001
6 years, 8 months ago (2014-04-10 15:08:24 UTC) #16
commit-bot: I haz the power
Change committed as 263016
6 years, 8 months ago (2014-04-10 17:03:24 UTC) #17
tfarina
https://codereview.chromium.org/228393004/diff/100001/chrome/browser/DEPS File chrome/browser/DEPS (right): https://codereview.chromium.org/228393004/diff/100001/chrome/browser/DEPS#newcode15 chrome/browser/DEPS:15: "+components/bookmarks", you didn't need to include this just yet. ...
6 years, 8 months ago (2014-04-10 17:48:26 UTC) #18
tfarina
https://codereview.chromium.org/228393004/diff/100001/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): https://codereview.chromium.org/228393004/diff/100001/chrome/chrome_browser.gypi#newcode31 chrome/chrome_browser.gypi:31: '../components/components.gyp:bookmarks_core_common', also, no. I think this should have been ...
6 years, 8 months ago (2014-04-10 17:53:18 UTC) #19
sdefresne
6 years, 8 months ago (2014-04-10 21:23:51 UTC) #20
Message was sent while issue was closed.
On 2014/04/10 17:53:18, tfarina wrote:
>
https://codereview.chromium.org/228393004/diff/100001/chrome/chrome_browser.gypi
> File chrome/chrome_browser.gypi (right):
> 
>
https://codereview.chromium.org/228393004/diff/100001/chrome/chrome_browser.g...
> chrome/chrome_browser.gypi:31:
> '../components/components.gyp:bookmarks_core_common',
> also, no. I think this should have been added to dependencies list of
> common_constants target.
> 
>
https://codereview.chromium.org/228393004/diff/100001/components/components_t...
> File components/components_tests.gyp (right):
> 
>
https://codereview.chromium.org/228393004/diff/100001/components/components_t...
> components/components_tests.gyp:183: 'components.gyp:bookmarks_core_common',
> why did you add this dep here? As far I as can see components_unittests does
not
> have any bookmark tests yet and nobody needs to link with
bookmark_pref_names.o
> yet.

Thank you for pointing those errors.
I've fixed them with https://codereview.chromium.org/233953002

Powered by Google App Engine
This is Rietveld 408576698