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

Issue 64853004: Use high resolution icons where possible for streamlined hosted app icons. (Closed)

Created:
7 years, 1 month ago by calamity
Modified:
7 years ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org, benwells
Base URL:
https://chromium.googlesource.com/chromium/src.git@browser_experiment_create_app_from_page
Visibility:
Public.

Description

Use high resolution icons where possible for streamlined hosted app icons. This adds a FaviconDownloader which downloads all icons when creating streamlined hosted apps from the current web contents, providing higher resolution icons. BUG=318607 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241462

Patch Set 1 : #

Total comments: 46

Patch Set 2 : rebase #

Patch Set 3 : rework, add tests #

Total comments: 56

Patch Set 4 : rebase #

Patch Set 5 : rework #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : remove window icon updating #

Total comments: 11

Patch Set 8 : rework #

Patch Set 9 : mass refactor: pull code into FaviconDownloader class #

Total comments: 17

Patch Set 10 : rework #

Total comments: 16

Patch Set 11 : rework #

Total comments: 4

Patch Set 12 : move favicon_downloader* to c/b/extensions #

Total comments: 2

Patch Set 13 : rebase #

Patch Set 14 : fix nit, remove unused declaration #

Patch Set 15 : add RenderViewImpl test to ensure FaviconTabHelper is not sent an empty vector #

Total comments: 10

Patch Set 16 : rework #

Patch Set 17 : rebase #

Patch Set 18 : fix tests for linux #

Unified diffs Side-by-side diffs Delta from patch set Stats (+537 lines, -36 lines) Patch
A chrome/browser/extensions/favicon_downloader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +101 lines, -0 lines 0 comments Download
A chrome/browser/extensions/favicon_downloader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +124 lines, -0 lines 0 comments Download
A chrome/browser/extensions/favicon_downloader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +197 lines, -0 lines 0 comments Download
M chrome/browser/extensions/tab_helper.h View 1 2 3 4 5 6 7 8 13 4 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/extensions/tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +68 lines, -34 lines 0 comments Download
M chrome/browser/favicon/favicon_tab_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/favicon/favicon_tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 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 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
calamity
7 years, 1 month ago (2013-11-08 07:03:44 UTC) #1
tapted
I think I still have a bit to absorb. CL needs a BUG#. Also, I ...
7 years, 1 month ago (2013-11-11 08:52:57 UTC) #2
benwells
https://codereview.chromium.org/64853004/diff/40001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/64853004/diff/40001/chrome/browser/ui/browser.cc#newcode2099 chrome/browser/ui/browser.cc:2099: hosted_app_tab_helper->set_delegate(delegate); On 2013/11/11 08:52:57, tapted wrote: > What about ...
7 years, 1 month ago (2013-11-11 23:15:54 UTC) #3
calamity
https://codereview.chromium.org/64853004/diff/40001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/64853004/diff/40001/chrome/browser/ui/browser.cc#newcode1755 chrome/browser/ui/browser.cc:1755: LoadingStateChanged(source); On 2013/11/11 08:52:57, tapted wrote: > This doesn't ...
7 years, 1 month ago (2013-11-13 06:37:14 UTC) #4
tapted
An initial batch of comments - I'll do a thorough pass tomorrow. Looks really good. ...
7 years, 1 month ago (2013-11-13 07:44:52 UTC) #5
benwells
https://codereview.chromium.org/64853004/diff/510001/chrome/browser/extensions/tab_helper.cc File chrome/browser/extensions/tab_helper.cc (right): https://codereview.chromium.org/64853004/diff/510001/chrome/browser/extensions/tab_helper.cc#newcode305 chrome/browser/extensions/tab_helper.cc:305: switch (pending_web_app_action_) { We should remove all this pending_web_app_action_ ...
7 years, 1 month ago (2013-11-13 21:55:16 UTC) #6
benwells
https://codereview.chromium.org/64853004/diff/510001/chrome/browser/extensions/tab_helper.cc File chrome/browser/extensions/tab_helper.cc (right): https://codereview.chromium.org/64853004/diff/510001/chrome/browser/extensions/tab_helper.cc#newcode305 chrome/browser/extensions/tab_helper.cc:305: switch (pending_web_app_action_) { We should remove all this pending_web_app_action_ ...
7 years, 1 month ago (2013-11-13 21:55:16 UTC) #7
benwells
https://codereview.chromium.org/64853004/diff/510001/chrome/browser/extensions/tab_helper.cc File chrome/browser/extensions/tab_helper.cc (right): https://codereview.chromium.org/64853004/diff/510001/chrome/browser/extensions/tab_helper.cc#newcode305 chrome/browser/extensions/tab_helper.cc:305: switch (pending_web_app_action_) { We should remove all this pending_web_app_action_ ...
7 years, 1 month ago (2013-11-13 21:55:16 UTC) #8
benwells
Meant to mention: still looking, this is just a first quick pass.
7 years, 1 month ago (2013-11-13 21:55:51 UTC) #9
calamity
https://codereview.chromium.org/64853004/diff/510001/chrome/browser/extensions/tab_helper.cc File chrome/browser/extensions/tab_helper.cc (right): https://codereview.chromium.org/64853004/diff/510001/chrome/browser/extensions/tab_helper.cc#newcode305 chrome/browser/extensions/tab_helper.cc:305: switch (pending_web_app_action_) { On 2013/11/13 21:55:17, benwells wrote: > ...
7 years, 1 month ago (2013-11-15 04:25:49 UTC) #10
tapted
CL description might need an update too (e.g. 48x48 rather than 32x32) https://codereview.chromium.org/64853004/diff/510001/chrome/browser/ui/web_applications/hosted_app_tab_helper_unittest.cc File chrome/browser/ui/web_applications/hosted_app_tab_helper_unittest.cc ...
7 years, 1 month ago (2013-11-17 23:28:50 UTC) #11
calamity
Removed the window icon stuff because it adds complexity and is orthogonal to the core ...
7 years, 1 month ago (2013-11-22 07:38:38 UTC) #12
benwells
https://codereview.chromium.org/64853004/diff/1290001/chrome/browser/ui/web_applications/hosted_app_tab_helper.h File chrome/browser/ui/web_applications/hosted_app_tab_helper.h (right): https://codereview.chromium.org/64853004/diff/1290001/chrome/browser/ui/web_applications/hosted_app_tab_helper.h#newcode36 chrome/browser/ui/web_applications/hosted_app_tab_helper.h:36: void CreateHostedApp(const WebApplicationInfo& web_app_info); I think this is all ...
7 years ago (2013-11-25 00:40:15 UTC) #13
pkotwicz
https://codereview.chromium.org/64853004/diff/1290001/chrome/browser/ui/web_applications/hosted_app_tab_helper.cc File chrome/browser/ui/web_applications/hosted_app_tab_helper.cc (right): https://codereview.chromium.org/64853004/diff/1290001/chrome/browser/ui/web_applications/hosted_app_tab_helper.cc#newcode40 chrome/browser/ui/web_applications/hosted_app_tab_helper.cc:40: FetchIcons(); Can we add a method to FaviconTabHelper to ...
7 years ago (2013-11-25 01:21:28 UTC) #14
calamity
On 2013/11/25 01:21:28, pkotwicz wrote: > https://codereview.chromium.org/64853004/diff/1290001/chrome/browser/ui/web_applications/hosted_app_tab_helper.cc > File chrome/browser/ui/web_applications/hosted_app_tab_helper.cc (right): > > https://codereview.chromium.org/64853004/diff/1290001/chrome/browser/ui/web_applications/hosted_app_tab_helper.cc#newcode40 > ...
7 years ago (2013-11-26 03:31:22 UTC) #15
pkotwicz
On 2013/11/26 03:31:22, calamity wrote: > On 2013/11/25 01:21:28, pkotwicz wrote: > > > https://codereview.chromium.org/64853004/diff/1290001/chrome/browser/ui/web_applications/hosted_app_tab_helper.cc ...
7 years ago (2013-11-26 05:47:29 UTC) #16
calamity
I moved everything around as pkotwicz suggested. There is no longer a persistent tab helper. ...
7 years ago (2013-11-29 05:45:35 UTC) #17
pkotwicz
Looks a lot better https://codereview.chromium.org/64853004/diff/1440001/chrome/browser/favicon/favicon_downloader.cc File chrome/browser/favicon/favicon_downloader.cc (right): https://codereview.chromium.org/64853004/diff/1440001/chrome/browser/favicon/favicon_downloader.cc#newcode18 chrome/browser/favicon/favicon_downloader.cc:18: callback_(callback) { Nit: Initialization order ...
7 years ago (2013-12-02 01:00:56 UTC) #18
calamity
https://codereview.chromium.org/64853004/diff/1440001/chrome/browser/favicon/favicon_downloader.cc File chrome/browser/favicon/favicon_downloader.cc (right): https://codereview.chromium.org/64853004/diff/1440001/chrome/browser/favicon/favicon_downloader.cc#newcode18 chrome/browser/favicon/favicon_downloader.cc:18: callback_(callback) { On 2013/12/02 01:00:57, pkotwicz wrote: > Nit: ...
7 years ago (2013-12-03 05:52:15 UTC) #19
pkotwicz
I think you can get sky@ to take a look at the changes in chrome/browser/favicon ...
7 years ago (2013-12-03 19:06:48 UTC) #20
calamity
+sky for chrome/browser/favicon OWNERS Thanks. https://codereview.chromium.org/64853004/diff/1480001/chrome/browser/favicon/favicon_downloader.cc File chrome/browser/favicon/favicon_downloader.cc (right): https://codereview.chromium.org/64853004/diff/1480001/chrome/browser/favicon/favicon_downloader.cc#newcode11 chrome/browser/favicon/favicon_downloader.cc:11: #include "third_party/skia/include/core/SkBitmap.h" On 2013/12/03 ...
7 years ago (2013-12-04 05:31:47 UTC) #21
pkotwicz
https://codereview.chromium.org/64853004/diff/1500001/chrome/browser/favicon/favicon_tab_helper.h File chrome/browser/favicon/favicon_tab_helper.h (right): https://codereview.chromium.org/64853004/diff/1500001/chrome/browser/favicon/favicon_tab_helper.h#newcode54 chrome/browser/favicon/favicon_tab_helper.h:54: // Returns the current tab's favicon urls. Returns NULL ...
7 years ago (2013-12-04 05:48:18 UTC) #22
sky
I only looked at this briefly. Can you give a bit more motivation here? Is ...
7 years ago (2013-12-04 16:05:23 UTC) #23
calamity
The motivation is to create hosted apps from websites with better icons. At the moment, ...
7 years ago (2013-12-05 02:42:56 UTC) #24
sky
Yes, I prefer keeping it near extension code unless someone else needs it. That way ...
7 years ago (2013-12-05 15:22:41 UTC) #25
calamity
Moved favicon_downloader* to c/b/extensions where it can be OWNed by benwells@; sky@ now only OWNs ...
7 years ago (2013-12-11 04:43:42 UTC) #26
sky
LGTM https://codereview.chromium.org/64853004/diff/1540001/chrome/browser/favicon/favicon_tab_helper.h File chrome/browser/favicon/favicon_tab_helper.h (right): https://codereview.chromium.org/64853004/diff/1540001/chrome/browser/favicon/favicon_tab_helper.h#newcode56 chrome/browser/favicon/favicon_tab_helper.h:56: const std::vector<content::FaviconURL>& GetFaviconURLs() { GetFaviconURLS()-> favicon_urls() and make ...
7 years ago (2013-12-11 15:12:06 UTC) #27
calamity
+jamesr for content/renderer/ OWNERS Added a test to verify the assumption made in FaviconTabHelper that ...
7 years ago (2013-12-12 05:35:00 UTC) #28
benwells
https://codereview.chromium.org/64853004/diff/1600001/chrome/browser/extensions/favicon_downloader.cc File chrome/browser/extensions/favicon_downloader.cc (right): https://codereview.chromium.org/64853004/diff/1600001/chrome/browser/extensions/favicon_downloader.cc#newcode34 chrome/browser/extensions/favicon_downloader.cc:34: if (!favicon_tab_helper_urls.empty()) { Could this ever be empty, but ...
7 years ago (2013-12-12 21:17:57 UTC) #29
jamesr
It seems a little strange for a content test to be verifying things that only ...
7 years ago (2013-12-13 01:18:45 UTC) #30
calamity
https://codereview.chromium.org/64853004/diff/1600001/chrome/browser/extensions/favicon_downloader.cc File chrome/browser/extensions/favicon_downloader.cc (right): https://codereview.chromium.org/64853004/diff/1600001/chrome/browser/extensions/favicon_downloader.cc#newcode34 chrome/browser/extensions/favicon_downloader.cc:34: if (!favicon_tab_helper_urls.empty()) { On 2013/12/12 21:17:57, benwells wrote: > ...
7 years ago (2013-12-13 03:11:54 UTC) #31
calamity
7 years ago (2013-12-13 03:11:57 UTC) #32
benwells
lgtm
7 years ago (2013-12-13 06:37:39 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/64853004/1620001
7 years ago (2013-12-13 06:52:42 UTC) #34
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=203234
7 years ago (2013-12-13 07:11:39 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/64853004/1660001
7 years ago (2013-12-15 23:58:46 UTC) #36
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204446
7 years ago (2013-12-16 00:28:52 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/64853004/1660001
7 years ago (2013-12-17 00:16:40 UTC) #38
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=237044
7 years ago (2013-12-17 07:53:48 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/64853004/1660001
7 years ago (2013-12-18 01:50:42 UTC) #40
commit-bot: I haz the power
7 years ago (2013-12-18 03:25:48 UTC) #41
Message was sent while issue was closed.
Change committed as 241462

Powered by Google App Engine
This is Rietveld 408576698