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

Issue 769153007: Managed bookmarks for supervised users (Closed)

Created:
6 years ago by Marc Treib
Modified:
5 years, 10 months ago
CC:
asvitkine+watch_chromium.org, browser-components-watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, Patrick Nepper, noyau+watch_chromium.org, oshima+watch_chromium.org, pam+watch_chromium.org, tfarina, Bernhard Bauer
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Managed bookmarks for supervised users. Design doc: https://docs.google.com/document/d/1Ms5wHyGtVzdH0MOF46olgnTj4k9opQGYzMSrk-LJckM Based on fhorschig's https://chromereviews.googleplex.com/108977013/ BUG=443606 Committed: https://crrev.com/1a600c7b3fdff94fa7e00656191f37fb65dd05b1 Cr-Commit-Position: refs/heads/master@{#315289}

Patch Set 1 #

Patch Set 2 : update #

Patch Set 3 : rebase #

Total comments: 50

Patch Set 4 : review #

Total comments: 2

Patch Set 5 : review #

Patch Set 6 : Mac #

Patch Set 7 : fix #

Patch Set 8 : missing files #

Patch Set 9 : fix iOS;histograms #

Patch Set 10 : fix+extend test #

Patch Set 11 : string change #

Total comments: 14

Patch Set 12 : review #

Patch Set 13 : new string&icons; rebase #

Total comments: 20

Patch Set 14 : bartfab review #

Patch Set 15 : Android fix; rebase #

Total comments: 16

Patch Set 16 : rebase #

Patch Set 17 : review #

Patch Set 18 : review2 #

Patch Set 19 : fix build (Android & unit_tests) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1182 lines, -169 lines) Patch
M build/ios/grit_whitelist.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/app/theme/default_100_percent/common/bookmark_bar_folder_supervised.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
A chrome/app/theme/default_100_percent/mac/bookmark_bar_folder_supervised.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
A chrome/app/theme/default_200_percent/common/bookmark_bar_folder_supervised.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
A chrome/app/theme/default_200_percent/mac/bookmark_bar_folder_supervised.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/android/bookmarks/bookmarks_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model_factory.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/chrome_bookmark_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +13 lines, -8 lines 0 comments Download
M chrome/browser/bookmarks/chrome_bookmark_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +58 lines, -37 lines 0 comments Download
M chrome/browser/bookmarks/chrome_bookmark_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +22 lines, -12 lines 0 comments Download
M chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/bookmarks/bookmark_apitest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +29 lines, -13 lines 0 comments Download
M chrome/browser/extensions/api/bookmarks/bookmarks_api.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
A chrome/browser/supervised_user/supervised_user_bookmarks_handler.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +68 lines, -0 lines 0 comments Download
A chrome/browser/supervised_user/supervised_user_bookmarks_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +213 lines, -0 lines 0 comments Download
A chrome/browser/supervised_user/supervised_user_bookmarks_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +320 lines, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_pref_store.cc View 1 2 2 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 chunks +120 lines, -22 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm 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
M chrome/browser/ui/cocoa/bookmarks/bookmark_menu_bridge.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/ui/view_ids.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 20 chunks +84 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h 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
M chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +23 lines, -9 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 18 1 chunk +2 lines, -0 lines 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 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/bookmarks.json View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/bookmarks/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +13 lines, -5 lines 0 comments Download
M components/bookmark_bar_strings.grdp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -0 lines 0 comments Download
M components/bookmarks/browser/bookmark_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +8 lines, -0 lines 0 comments Download
M components/bookmarks/browser/bookmark_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +14 lines, -0 lines 0 comments Download
M components/bookmarks/common/bookmark_pref_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/bookmarks/common/bookmark_pref_names.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M components/policy/core/browser/managed_bookmarks_tracker.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +21 lines, -6 lines 0 comments Download
M components/policy/core/browser/managed_bookmarks_tracker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +38 lines, -18 lines 0 comments Download
M components/policy/core/browser/managed_bookmarks_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 11 chunks +33 lines, -11 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (8 generated)
Marc Treib
Hi Pam, I think this is ready for a first round of review - PTAL ...
6 years ago (2014-12-18 15:52:40 UTC) #2
Pam (message me for reviews)
https://codereview.chromium.org/769153007/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/769153007/diff/40001/chrome/app/generated_resources.grd#newcode6332 chrome/app/generated_resources.grd:6332: + <message name="IDS_FLAGS_ENABLE_SUPERVISED_USER_MANAGED_BOOKMARKS_FOLDER_NAME" desc="Name of the flag to enable ...
5 years, 11 months ago (2015-01-14 14:03:38 UTC) #3
noyau (Ping after 24h)
Drive-by: The design doc for this feature is a little light, the client UI is ...
5 years, 11 months ago (2015-01-14 15:12:14 UTC) #4
Marc Treib
On 2015/01/14 15:12:14, noyau wrote: > Drive-by: The design doc for this feature is a ...
5 years, 11 months ago (2015-01-14 16:04:16 UTC) #5
Marc Treib
https://codereview.chromium.org/769153007/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/769153007/diff/40001/chrome/app/generated_resources.grd#newcode6332 chrome/app/generated_resources.grd:6332: + <message name="IDS_FLAGS_ENABLE_SUPERVISED_USER_MANAGED_BOOKMARKS_FOLDER_NAME" desc="Name of the flag to enable ...
5 years, 11 months ago (2015-01-14 16:40:50 UTC) #6
Pam (message me for reviews)
LGTM, preferably with two more comments added as described below. https://codereview.chromium.org/769153007/diff/40001/chrome/browser/bookmarks/chrome_bookmark_client.cc File chrome/browser/bookmarks/chrome_bookmark_client.cc (right): https://codereview.chromium.org/769153007/diff/40001/chrome/browser/bookmarks/chrome_bookmark_client.cc#newcode64 ...
5 years, 11 months ago (2015-01-15 11:37:04 UTC) #7
Marc Treib
https://codereview.chromium.org/769153007/diff/40001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h File chrome/browser/ui/views/bookmarks/bookmark_bar_view.h (right): https://codereview.chromium.org/769153007/diff/40001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h#newcode421 chrome/browser/ui/views/bookmarks/bookmark_bar_view.h:421: views::MenuButton* supervised_bookmarks_button_; On 2015/01/15 11:37:04, Pam (also PM for ...
5 years, 11 months ago (2015-01-15 12:30:09 UTC) #8
Marc Treib
Now that Pam's satisfied, adding people for OWNERS review: rohitrao for build/ios oshima for c/a/theme ...
5 years, 11 months ago (2015-01-23 11:51:13 UTC) #10
noyau (Ping after 24h)
https://codereview.chromium.org/769153007/diff/200001/chrome/browser/bookmarks/chrome_bookmark_client.h File chrome/browser/bookmarks/chrome_bookmark_client.h (right): https://codereview.chromium.org/769153007/diff/200001/chrome/browser/bookmarks/chrome_bookmark_client.h#newcode39 chrome/browser/bookmarks/chrome_bookmark_client.h:39: const BookmarkNode* supervised_node() { return supervised_node_; } Can we ...
5 years, 11 months ago (2015-01-23 12:14:52 UTC) #11
rohitrao (ping after 24h)
In grit_whitelist.txt, did you intentionally only add NAME and not DESCRIPTION? Will iOS need the ...
5 years, 11 months ago (2015-01-23 14:14:07 UTC) #12
Alexei Svitkine (slow)
I also took a look at cocoa/bookmarks, since I'm an owner of that dir. https://codereview.chromium.org/769153007/diff/200001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h ...
5 years, 11 months ago (2015-01-23 16:06:13 UTC) #13
Marc Treib
On 2015/01/23 14:14:07, rohitrao wrote: > In grit_whitelist.txt, did you intentionally only add NAME and ...
5 years, 11 months ago (2015-01-26 09:31:28 UTC) #14
Marc Treib
https://codereview.chromium.org/769153007/diff/200001/chrome/browser/bookmarks/chrome_bookmark_client.h File chrome/browser/bookmarks/chrome_bookmark_client.h (right): https://codereview.chromium.org/769153007/diff/200001/chrome/browser/bookmarks/chrome_bookmark_client.h#newcode39 chrome/browser/bookmarks/chrome_bookmark_client.h:39: const BookmarkNode* supervised_node() { return supervised_node_; } On 2015/01/23 ...
5 years, 11 months ago (2015-01-26 12:27:42 UTC) #15
bartfab (slow)
components/policy/core/browser LGTM However, I think that managed_bookmarks_tracker* should move somewhere else now that handles more ...
5 years, 11 months ago (2015-01-26 15:40:14 UTC) #16
Alexei Svitkine (slow)
lgtm
5 years, 11 months ago (2015-01-26 16:13:56 UTC) #17
rohitrao (ping after 24h)
grit_whitelist.txt LGTM
5 years, 11 months ago (2015-01-26 16:15:24 UTC) #18
Marc Treib
https://codereview.chromium.org/769153007/diff/240001/components/policy/core/browser/managed_bookmarks_tracker.cc File components/policy/core/browser/managed_bookmarks_tracker.cc (right): https://codereview.chromium.org/769153007/diff/240001/components/policy/core/browser/managed_bookmarks_tracker.cc#newcode103 components/policy/core/browser/managed_bookmarks_tracker.cc:103: std::string domain = get_management_domain_callback_.Run(); On 2015/01/26 15:40:13, bartfab wrote: ...
5 years, 11 months ago (2015-01-26 16:16:48 UTC) #19
Marc Treib
On 2015/01/26 15:40:14, bartfab wrote: > However, I think that managed_bookmarks_tracker* should move somewhere else ...
5 years, 11 months ago (2015-01-26 16:18:32 UTC) #20
oshima
c/a/theme lgtm
5 years, 11 months ago (2015-01-26 19:31:34 UTC) #21
Marc Treib
Friendly ping: sky, can you take a look at the remaining (not-yet-reviewed) bookmarks code? Thanks!
5 years, 10 months ago (2015-02-03 17:45:23 UTC) #22
sky
Can you remind me which files that is? On Tue, Feb 3, 2015 at 9:45 ...
5 years, 10 months ago (2015-02-03 21:28:52 UTC) #23
Marc Treib
On 2015/02/03 21:28:52, sky wrote: > Can you remind me which files that is? Sure! ...
5 years, 10 months ago (2015-02-04 08:53:26 UTC) #24
sky
https://codereview.chromium.org/769153007/diff/280001/chrome/browser/bookmarks/chrome_bookmark_client.cc File chrome/browser/bookmarks/chrome_bookmark_client.cc (right): https://codereview.chromium.org/769153007/diff/280001/chrome/browser/bookmarks/chrome_bookmark_client.cc#newcode53 chrome/browser/bookmarks/chrome_bookmark_client.cc:53: for (size_t i = 0; i < list.size(); ++i) ...
5 years, 10 months ago (2015-02-04 18:36:58 UTC) #25
Marc Treib
Thanks for your comments! Some addressed, some further commented on below. https://codereview.chromium.org/769153007/diff/280001/chrome/browser/bookmarks/chrome_bookmark_client.cc File chrome/browser/bookmarks/chrome_bookmark_client.cc (right): ...
5 years, 10 months ago (2015-02-05 12:57:06 UTC) #26
sky
https://codereview.chromium.org/769153007/diff/280001/chrome/browser/bookmarks/chrome_bookmark_client.cc File chrome/browser/bookmarks/chrome_bookmark_client.cc (right): https://codereview.chromium.org/769153007/diff/280001/chrome/browser/bookmarks/chrome_bookmark_client.cc#newcode224 chrome/browser/bookmarks/chrome_bookmark_client.cc:224: scoped_ptr<BookmarkPermanentNode> supervised(new BookmarkPermanentNode(1)); On 2015/02/05 12:57:06, Marc Treib wrote: ...
5 years, 10 months ago (2015-02-05 17:57:11 UTC) #27
Marc Treib
All remaining comments addressed, hopefully :) https://codereview.chromium.org/769153007/diff/280001/chrome/browser/bookmarks/chrome_bookmark_client.cc File chrome/browser/bookmarks/chrome_bookmark_client.cc (right): https://codereview.chromium.org/769153007/diff/280001/chrome/browser/bookmarks/chrome_bookmark_client.cc#newcode224 chrome/browser/bookmarks/chrome_bookmark_client.cc:224: scoped_ptr<BookmarkPermanentNode> supervised(new BookmarkPermanentNode(1)); ...
5 years, 10 months ago (2015-02-06 13:40:37 UTC) #28
sky
Perfect. Thanks for the comment. LGTM
5 years, 10 months ago (2015-02-06 16:39:33 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/769153007/340001
5 years, 10 months ago (2015-02-06 16:50:12 UTC) #31
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/40042)
5 years, 10 months ago (2015-02-06 17:02:51 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/769153007/360001
5 years, 10 months ago (2015-02-09 11:35:05 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) Timed out ...
5 years, 10 months ago (2015-02-09 11:56:37 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/769153007/360001
5 years, 10 months ago (2015-02-09 13:27:30 UTC) #40
commit-bot: I haz the power
Committed patchset #19 (id:360001)
5 years, 10 months ago (2015-02-09 13:48:07 UTC) #41
commit-bot: I haz the power
5 years, 10 months ago (2015-02-09 13:48:48 UTC) #42
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/1a600c7b3fdff94fa7e00656191f37fb65dd05b1
Cr-Commit-Position: refs/heads/master@{#315289}

Powered by Google App Engine
This is Rietveld 408576698