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

Issue 105873009: Use apple-touch-icons for streamlined hosted apps. (Closed)

Created:
6 years, 11 months ago by calamity
Modified:
6 years, 11 months ago
Reviewers:
benwells, sky
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Use apple-touch-icons for streamlined hosted apps. This patch allows streamlined hosted apps to use the apple touch icons for generating hosted apps. To use the icons, it is necessary to size them to extension_misc::kExtensionIconSizes to make the manifest handler agree to use the icons. Added TabHelper::ConstrainBitmapsToSizes which finds the closest, not-smaller bitmap for each size and downsizes it. At most each bitmap is used for 1 size in order to prevent generating resized icons which would be stored on disk. BUG=318607 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243797

Patch Set 1 : #

Patch Set 2 : move ConstrainBitmapsToSizes into TabHelper #

Patch Set 3 : rebase #

Total comments: 3

Patch Set 4 : rebase #

Patch Set 5 : fix nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -13 lines) Patch
M chrome/browser/extensions/tab_helper.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/tab_helper.cc View 1 2 3 chunks +62 lines, -8 lines 0 comments Download
A chrome/browser/extensions/tab_helper_unittest.cc View 1 1 chunk +79 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/web_application_info.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/web_application_info.cc View 1 2 3 4 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/renderer/web_apps.cc View 2 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
calamity
6 years, 11 months ago (2013-12-30 07:25:02 UTC) #1
calamity
Screenshots at crbug.com/318607
6 years, 11 months ago (2013-12-31 00:54:19 UTC) #2
calamity
Moved ConstrainBitmapsToSizes to TabHelper.
6 years, 11 months ago (2014-01-07 02:41:51 UTC) #3
benwells
https://codereview.chromium.org/105873009/diff/280001/chrome/browser/extensions/tab_helper.cc File chrome/browser/extensions/tab_helper.cc (right): https://codereview.chromium.org/105873009/diff/280001/chrome/browser/extensions/tab_helper.cc#newcode374 chrome/browser/extensions/tab_helper.cc:374: if (bitmap_it->empty() || bitmap_it->width() != bitmap_it->height()) What happens if ...
6 years, 11 months ago (2014-01-07 07:03:48 UTC) #4
benwells
lgtm after discussing with chris
6 years, 11 months ago (2014-01-08 00:26:07 UTC) #5
benwells
lgtm after discussing with chris
6 years, 11 months ago (2014-01-08 00:26:07 UTC) #6
calamity
+sky for chrome/common and chrome/renderer OWNERS. https://codereview.chromium.org/105873009/diff/280001/chrome/browser/extensions/tab_helper.cc File chrome/browser/extensions/tab_helper.cc (right): https://codereview.chromium.org/105873009/diff/280001/chrome/browser/extensions/tab_helper.cc#newcode374 chrome/browser/extensions/tab_helper.cc:374: if (bitmap_it->empty() || ...
6 years, 11 months ago (2014-01-08 23:08:23 UTC) #7
sky
LGTM https://codereview.chromium.org/105873009/diff/280001/chrome/common/web_application_info.cc File chrome/common/web_application_info.cc (right): https://codereview.chromium.org/105873009/diff/280001/chrome/common/web_application_info.cc#newcode13 chrome/common/web_application_info.cc:13: WebApplicationInfo::WebApplicationInfo() : is_bookmark_app(false), nit: as you wrapped, wrap ...
6 years, 11 months ago (2014-01-09 00:30:35 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/105873009/400001
6 years, 11 months ago (2014-01-09 04:17:38 UTC) #9
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 07:33:33 UTC) #10
Message was sent while issue was closed.
Change committed as 243797

Powered by Google App Engine
This is Rietveld 408576698