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

Issue 782693002: Ensure there are always nice icons for bookmark apps. (Closed)

Created:
6 years ago by benwells
Modified:
6 years ago
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, albertb+watch_chromium.org, chromium-apps-reviews_chromium.org, maniscalco+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Ensure there are always nice icons for bookmark apps. This change does a few things. Firstly, it stops bookmark apps from using downloaded favicons / manifest icons. Secondly, it syncs the color it uses to generate icons. Thirdly, machines that bookmark apps are synced onto will now generate icons using the synced color. This means bookmark apps will always have nice icons (although not the ones downloaded) and they will always be consistent across machines. Once blob sync is available the downloaded icons will be kept and synced. BUG=439347 Committed: https://crrev.com/d4b64a7bf6f7d450e41f5133890cdaebb30623da Cr-Commit-Position: refs/heads/master@{#307889}

Patch Set 1 #

Patch Set 2 : Self review; test #

Total comments: 12

Patch Set 3 : Rebase #

Patch Set 4 : Review feedback #

Total comments: 4

Patch Set 5 : Review feedback #

Patch Set 6 : Sync test #

Patch Set 7 : Rebase #

Patch Set 8 : Mac compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+304 lines, -297 lines) Patch
M chrome/browser/extensions/api/extension_action/extension_action_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/app_sync_data.h View 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/app_sync_data.cc View 1 4 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/bookmark_app_helper.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/bookmark_app_helper.cc View 1 2 3 5 chunks +90 lines, -104 lines 0 comments Download
M chrome/browser/extensions/bookmark_app_helper_unittest.cc View 1 2 3 6 chunks +7 lines, -53 lines 0 comments Download
M chrome/browser/extensions/convert_web_app.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_sync_service.cc View 1 2 3 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_apps_sync_test.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/bookmark_app_bubble_view.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_manifest_features.json View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/chrome_manifest_handlers.cc View 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/common/extensions/manifest_handlers/app_icon_color_info.h View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/common/extensions/manifest_handlers/app_icon_color_info.cc View 1 2 3 4 1 chunk +84 lines, -0 lines 0 comments Download
M chrome/common/web_application_info.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/web_application_info.cc View 1 chunk +2 lines, -1 line 0 comments Download
M extensions/BUILD.gn View 1 2 2 chunks +1 line, -1 line 0 comments Download
M extensions/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M extensions/browser/DEPS View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/api/app_window/app_window_api.cc View 1 chunk +1 line, -1 line 0 comments Download
D extensions/browser/image_util.h View 1 chunk +0 lines, -22 lines 0 comments Download
D extensions/browser/image_util.cc View 1 chunk +0 lines, -45 lines 0 comments Download
D extensions/browser/image_util_unittest.cc View 1 chunk +0 lines, -52 lines 0 comments Download
M extensions/common/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A + extensions/common/image_util.h View 2 chunks +5 lines, -2 lines 0 comments Download
A + extensions/common/image_util.cc View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
A + extensions/common/image_util_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/manifest_constants.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/common/manifest_constants.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 4 chunks +3 lines, -3 lines 0 comments Download
M sync/protocol/app_specifics.proto View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (11 generated)
benwells
calamity, please do an initial review.
6 years ago (2014-12-08 09:36:22 UTC) #3
benwells
calamity, please do an initial review.
6 years ago (2014-12-08 09:36:23 UTC) #4
calamity
https://codereview.chromium.org/782693002/diff/20001/chrome/browser/extensions/bookmark_app_helper.cc File chrome/browser/extensions/bookmark_app_helper.cc (right): https://codereview.chromium.org/782693002/diff/20001/chrome/browser/extensions/bookmark_app_helper.cc#newcode358 chrome/browser/extensions/bookmark_app_helper.cc:358: allowed_sizes)); Hmm. Technically, this is now unnecessary work. You ...
6 years ago (2014-12-09 03:46:12 UTC) #5
benwells
https://codereview.chromium.org/782693002/diff/20001/chrome/browser/extensions/bookmark_app_helper.cc File chrome/browser/extensions/bookmark_app_helper.cc (right): https://codereview.chromium.org/782693002/diff/20001/chrome/browser/extensions/bookmark_app_helper.cc#newcode358 chrome/browser/extensions/bookmark_app_helper.cc:358: allowed_sizes)); On 2014/12/09 03:46:11, calamity wrote: > Hmm. Technically, ...
6 years ago (2014-12-09 08:28:35 UTC) #6
calamity
lgtm, there's a typo in the CL description (syced).
6 years ago (2014-12-09 08:37:25 UTC) #7
benwells
+atwilson for sync/ +thestig for chrome/common, chrome/browser/ui
6 years ago (2014-12-09 11:44:49 UTC) #9
Lei Zhang
lgtm https://codereview.chromium.org/782693002/diff/60001/chrome/common/extensions/manifest_handlers/app_icon_color_info.cc File chrome/common/extensions/manifest_handlers/app_icon_color_info.cc (right): https://codereview.chromium.org/782693002/diff/60001/chrome/common/extensions/manifest_handlers/app_icon_color_info.cc#newcode1 chrome/common/extensions/manifest_handlers/app_icon_color_info.cc:1: // Copyright (c) 2013 The Chromium Authors. All ...
6 years ago (2014-12-09 20:28:15 UTC) #10
Andrew T Wilson (Slow)
+zea FYI Don't see anything under sync/ for me to review? I'm pretty jetlagged today ...
6 years ago (2014-12-09 21:07:06 UTC) #12
benwells
On 2014/12/09 21:07:06, Andrew T Wilson wrote: > +zea FYI > Don't see anything under ...
6 years ago (2014-12-09 21:18:33 UTC) #13
Andrew T Wilson (Slow)
lgtm with one nit https://codereview.chromium.org/782693002/diff/60001/sync/protocol/app_specifics.proto File sync/protocol/app_specifics.proto (right): https://codereview.chromium.org/782693002/diff/60001/sync/protocol/app_specifics.proto#newcode79 sync/protocol/app_specifics.proto:79: // This is the color ...
6 years ago (2014-12-09 22:09:02 UTC) #14
benwells
https://codereview.chromium.org/782693002/diff/60001/chrome/common/extensions/manifest_handlers/app_icon_color_info.cc File chrome/common/extensions/manifest_handlers/app_icon_color_info.cc (right): https://codereview.chromium.org/782693002/diff/60001/chrome/common/extensions/manifest_handlers/app_icon_color_info.cc#newcode1 chrome/common/extensions/manifest_handlers/app_icon_color_info.cc:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
6 years ago (2014-12-10 04:32:43 UTC) #16
benwells
+bsalomon as I've added a dependency onto skia from extensions/common and that needs a skia ...
6 years ago (2014-12-10 04:34:57 UTC) #18
bsalomon
On 2014/12/10 04:34:57, benwells wrote: > +bsalomon as I've added a dependency onto skia from ...
6 years ago (2014-12-10 19:37:55 UTC) #19
benwells
On 2014/12/10 19:37:55, bsalomon wrote: > On 2014/12/10 04:34:57, benwells wrote: > > +bsalomon as ...
6 years ago (2014-12-10 23:12:40 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/782693002/100001
6 years ago (2014-12-10 23:13:42 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg/builds/41596) win_chromium_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/7693)
6 years ago (2014-12-11 00:22:57 UTC) #24
benwells
On 2014/12/11 00:22:57, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years ago (2014-12-11 03:33:22 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/782693002/120001
6 years ago (2014-12-11 03:34:08 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/89971) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/92760)
6 years ago (2014-12-11 04:01:05 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/782693002/160001
6 years ago (2014-12-11 11:08:14 UTC) #31
commit-bot: I haz the power
Committed patchset #8 (id:160001)
6 years ago (2014-12-11 12:38:35 UTC) #32
commit-bot: I haz the power
6 years ago (2014-12-11 12:39:19 UTC) #33
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/d4b64a7bf6f7d450e41f5133890cdaebb30623da
Cr-Commit-Position: refs/heads/master@{#307889}

Powered by Google App Engine
This is Rietveld 408576698