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

Issue 10870022: Change FaviconData to be able to return data for multiple bitmaps for same icon URL (Closed)

Created:
8 years, 4 months ago by pkotwicz
Modified:
8 years, 3 months ago
Reviewers:
michaelbai, Nico, sky
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, ncarter (slow), mihaip-chromium-reviews_chromium.org, akalin, estade+watch_chromium.org, Raghu Simha, Aaron Boodman, groby+watch_chromium.org, brettw-cc_chromium.org, gbillock+watch_chromium.org, smckay+watch_chromium.org, tim (not reviewing), rjkroege
Visibility:
Public.

Description

Change FaviconData to be able to return data for multiple bitmaps for same icon URL. Add methods to FaviconService to get gfx::Image more easily from Favicon. BUG=138553 Test=Compiles, FaviconHandlerTest.* pass. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154157

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 5

Patch Set 5 : Changes as requested #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : Fix mac unittest #

Patch Set 9 : #

Patch Set 10 : Rebased and fixed browser tests #

Patch Set 11 : #

Patch Set 12 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+889 lines, -509 lines) Patch
M chrome/browser/bookmarks/bookmark_html_writer.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_html_writer.cc View 1 2 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model.cc View 1 2 3 chunks +8 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_web_ui.cc View 1 2 1 chunk +27 lines, -20 lines 0 comments Download
M chrome/browser/favicon/favicon_handler.h View 1 2 4 chunks +13 lines, -9 lines 0 comments Download
M chrome/browser/favicon/favicon_handler.cc View 1 2 3 4 5 6 7 8 9 7 chunks +63 lines, -34 lines 0 comments Download
M chrome/browser/favicon/favicon_handler_unittest.cc View 1 2 31 chunks +64 lines, -90 lines 0 comments Download
M chrome/browser/favicon/favicon_service.h View 1 2 3 4 5 6 7 8 9 4 chunks +141 lines, -36 lines 1 comment Download
M chrome/browser/favicon/favicon_service.cc View 1 2 3 4 5 6 7 8 9 4 chunks +217 lines, -22 lines 0 comments Download
M chrome/browser/history/android/sqlite_cursor.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/history/android/sqlite_cursor.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +13 lines, -8 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 4 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +43 lines, -31 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 2 3 4 5 4 chunks +34 lines, -22 lines 0 comments Download
M chrome/browser/history/history_marshaling.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/history_types.h View 1 2 3 4 4 chunks +59 lines, -32 lines 0 comments Download
M chrome/browser/history/history_types.cc View 1 2 3 chunks +20 lines, -16 lines 0 comments Download
M chrome/browser/jumplist_win.h View 1 2 3 4 5 6 6 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/jumplist_win.cc View 1 2 5 chunks +12 lines, -17 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator.cc View 1 2 5 chunks +12 lines, -10 lines 0 comments Download
M chrome/browser/ui/cocoa/history_menu_bridge.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/history_menu_bridge.mm View 1 2 3 chunks +11 lines, -16 lines 0 comments Download
M chrome/browser/ui/cocoa/history_menu_bridge_unittest.mm View 1 2 3 4 5 6 7 2 chunks +7 lines, -16 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_controller.h View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_controller.cc View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -12 lines 0 comments Download
M chrome/browser/ui/search_engines/template_url_table_model.cc View 1 2 3 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/ui/toolbar/back_forward_menu_model.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/toolbar/back_forward_menu_model.cc View 1 2 4 chunks +13 lines, -15 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 1 chunk +10 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_icon_source.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_icon_source.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/favicon_source.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/favicon_source.cc View 1 2 4 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/ntp/android/bookmarks_handler.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/android/bookmarks_handler.cc View 1 2 3 4 5 3 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 1 2 3 4 4 chunks +13 lines, -14 lines 0 comments Download
M chrome/browser/ui/webui/ntp/favicon_webui_handler.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/favicon_webui_handler.cc View 1 2 3 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
pkotwicz
8 years, 4 months ago (2012-08-22 22:02:17 UTC) #1
sky
The only think keeping me from approving is the change in HistoryBackend::GetFaviconFromDB. http://codereview.chromium.org/10870022/diff/1/chrome/browser/favicon/favicon_service.h File chrome/browser/favicon/favicon_service.h ...
8 years, 4 months ago (2012-08-23 15:50:37 UTC) #2
pkotwicz
Scott, can you please take a look? I ended up changing FaviconService::GetFavicon() and FaviconService::GetFaviconURL() to ...
8 years, 3 months ago (2012-08-27 02:24:35 UTC) #3
sky
http://codereview.chromium.org/10870022/diff/6003/chrome/browser/favicon/favicon_service.h File chrome/browser/favicon/favicon_service.h (right): http://codereview.chromium.org/10870022/diff/6003/chrome/browser/favicon/favicon_service.h#newcode37 chrome/browser/favicon/favicon_service.h:37: // |desired_size_in_dip| at the scale factors supported by this ...
8 years, 3 months ago (2012-08-27 14:52:01 UTC) #4
pkotwicz
Changes as requested. Improved a couple of comments. http://codereview.chromium.org/10870022/diff/6003/chrome/browser/ui/webui/ntp/app_launcher_handler.cc File chrome/browser/ui/webui/ntp/app_launcher_handler.cc (left): http://codereview.chromium.org/10870022/diff/6003/chrome/browser/ui/webui/ntp/app_launcher_handler.cc#oldcode776 chrome/browser/ui/webui/ntp/app_launcher_handler.cc:776: web_app->icons.clear(); ...
8 years, 3 months ago (2012-08-27 19:35:03 UTC) #5
sky
LGTM
8 years, 3 months ago (2012-08-27 20:50:11 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/10870022/7013
8 years, 3 months ago (2012-08-27 21:02:01 UTC) #7
commit-bot: I haz the power
Try job failure for 10870022-7013 (retry) on android for steps "compile, build" (clobber build). It's ...
8 years, 3 months ago (2012-08-27 21:22:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/10870022/15001
8 years, 3 months ago (2012-08-28 14:18:59 UTC) #9
commit-bot: I haz the power
Change committed as 153695
8 years, 3 months ago (2012-08-28 17:51:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/10870022/28001
8 years, 3 months ago (2012-08-29 23:58:29 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/10870022/28001
8 years, 3 months ago (2012-08-30 04:40:27 UTC) #12
commit-bot: I haz the power
Try job failure for 10870022-28001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-08-30 06:19:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/10870022/28001
8 years, 3 months ago (2012-08-30 06:23:32 UTC) #14
commit-bot: I haz the power
Failed to apply patch for chrome/browser/history/history_types.cc: While running patch -p1 --forward --force; patching file chrome/browser/history/history_types.cc ...
8 years, 3 months ago (2012-08-30 06:23:46 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/10870022/28001
8 years, 3 months ago (2012-08-30 13:23:40 UTC) #16
commit-bot: I haz the power
Change committed as 154157
8 years, 3 months ago (2012-08-30 15:43:53 UTC) #17
michaelbai
8 years, 3 months ago (2012-08-31 21:41:14 UTC) #18
https://chromiumcodereview.appspot.com/10870022/diff/28001/chrome/browser/fav...
File chrome/browser/favicon/favicon_service.h (right):

https://chromiumcodereview.appspot.com/10870022/diff/28001/chrome/browser/fav...
chrome/browser/favicon/favicon_service.h:159: const FaviconRawCallback&
callback);
I don't understand this method, Is favicon_id the unique ID of a favicon?

If I request a specific favicon by ID, what's the purpose of desired_size_in_dip
and desired_scale_factor?

Powered by Google App Engine
This is Rietveld 408576698