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

Issue 10918065: Introduce structures to reduce the number of arguments in the FaviconService methods. (Closed)

Created:
8 years, 3 months ago by Leandro Graciá Gil
Modified:
8 years, 3 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, ncarter (slow), groby+watch_chromium.org, akalin, Raghu Simha, browser-components-watch_chromium.org, Aaron Boodman, mihaip-chromium-reviews_chromium.org, estade+watch_chromium.org, gbillock+watch_chromium.org, smckay+watch_chromium.org, tim (not reviewing)
Visibility:
Public.

Description

Introduce structures to reduce the number of arguments in the FaviconService methods. Issue 10870022 introduced new arguments for the FaviconService methods, some of them now having more than 6 arguments. These methods cannot be called using the base::Bind mechanism because of template limitations. This patch introduces auxiliar structures to reduce the number of arguments in these methods and therefore allow using base::Bind on them. BUG=146003 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155113

Patch Set 1 #

Patch Set 2 : mac build fix. #

Total comments: 6

Patch Set 3 : use copies rather than refs + fix nits. #

Total comments: 3

Patch Set 4 : remove the auxiliary structure for non-URL cases. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -97 lines) Patch
M chrome/browser/bookmarks/bookmark_html_writer.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/favicon/favicon_handler.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/favicon/favicon_service.h View 1 2 3 3 chunks +25 lines, -20 lines 0 comments Download
M chrome/browser/favicon/favicon_service.cc View 1 2 3 2 chunks +19 lines, -35 lines 0 comments Download
M chrome/browser/jumplist_win.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/session_model_associator.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/history_menu_bridge.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_controller.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/toolbar/back_forward_menu_model.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_icon_source.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/favicon_source.cc View 1 2 3 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/ntp/android/bookmarks_handler.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 1 chunk +2 lines, -2 lines 1 comment Download
M chrome/browser/ui/webui/ntp/favicon_webui_handler.cc View 1 chunk +6 lines, -5 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Leandro Graciá Gil
Context: comments at the end of https://chromiumcodereview.appspot.com/10919055/ Ryan, Peter, Albert: new structified approach for FaviconService ...
8 years, 3 months ago (2012-09-05 06:20:39 UTC) #1
jam
On 2012/09/05 06:20:39, Leandro Graciá Gil wrote: > Context: comments at the end of https://chromiumcodereview.appspot.com/10919055/ ...
8 years, 3 months ago (2012-09-05 16:34:43 UTC) #2
Leandro Graciá Gil
On 2012/09/05 16:34:43, John Abd-El-Malek wrote: > On 2012/09/05 06:20:39, Leandro Graciá Gil wrote: > ...
8 years, 3 months ago (2012-09-05 16:45:39 UTC) #3
Leandro Graciá Gil
darin: I previously asked jam@, but he's a bit overflown by patches now. I'll need ...
8 years, 3 months ago (2012-09-05 17:20:26 UTC) #4
Peter Kasting
The favicon_service.* code has lots of almost-duplicate logic that seems to mainly differ by whether ...
8 years, 3 months ago (2012-09-05 17:51:37 UTC) #5
awong
https://codereview.chromium.org/10918065/diff/6002/chrome/browser/favicon/favicon_service.cc File chrome/browser/favicon/favicon_service.cc (right): https://codereview.chromium.org/10918065/diff/6002/chrome/browser/favicon/favicon_service.cc#newcode190 chrome/browser/favicon/favicon_service.cc:190: if (history_service_) nit: use braces for the if/else since ...
8 years, 3 months ago (2012-09-05 17:52:43 UTC) #6
Leandro Graciá Gil
pkotwicz: could you tell us what do you think of this and about Peter's comment ...
8 years, 3 months ago (2012-09-05 17:57:50 UTC) #7
awong
Just talked with Leandro offline a little. Sounds like leaving this out will break Android's ...
8 years, 3 months ago (2012-09-05 18:11:45 UTC) #8
Peter Kasting
I'm fine leaving my issue to be dealt with separately.
8 years, 3 months ago (2012-09-05 18:13:27 UTC) #9
Leandro Graciá Gil
On 2012/09/05 18:13:27, Peter Kasting wrote: > I'm fine leaving my issue to be dealt ...
8 years, 3 months ago (2012-09-05 18:15:39 UTC) #10
Leandro Graciá Gil
I'll be landing this manually and cherry-pick it downstream to prevent the Android build breaking. ...
8 years, 3 months ago (2012-09-05 18:28:36 UTC) #11
Leandro Graciá Gil
Looks like I'm still missing owner rubber stamp. Since there is a merge issue + ...
8 years, 3 months ago (2012-09-05 18:32:29 UTC) #12
Leandro Graciá Gil
stevenjb: since this involves the favicon code you might be interested. We intend to land ...
8 years, 3 months ago (2012-09-05 20:26:18 UTC) #13
James Hawkins
https://codereview.chromium.org/10918065/diff/1017/chrome/browser/favicon/favicon_service.h File chrome/browser/favicon/favicon_service.h (right): https://codereview.chromium.org/10918065/diff/1017/chrome/browser/favicon/favicon_service.h#newcode34 chrome/browser/favicon/favicon_service.h:34: // Auxiliary argument structure for requesting favicons. Why is ...
8 years, 3 months ago (2012-09-05 22:02:58 UTC) #14
Leandro Graciá Gil
https://codereview.chromium.org/10918065/diff/1017/chrome/browser/favicon/favicon_service.h File chrome/browser/favicon/favicon_service.h (right): https://codereview.chromium.org/10918065/diff/1017/chrome/browser/favicon/favicon_service.h#newcode34 chrome/browser/favicon/favicon_service.h:34: // Auxiliary argument structure for requesting favicons. On 2012/09/05 ...
8 years, 3 months ago (2012-09-05 22:04:27 UTC) #15
James Hawkins
https://codereview.chromium.org/10918065/diff/1017/chrome/browser/favicon/favicon_service.h File chrome/browser/favicon/favicon_service.h (right): https://codereview.chromium.org/10918065/diff/1017/chrome/browser/favicon/favicon_service.h#newcode34 chrome/browser/favicon/favicon_service.h:34: // Auxiliary argument structure for requesting favicons. On 2012/09/05 ...
8 years, 3 months ago (2012-09-05 22:11:49 UTC) #16
Leandro Graciá Gil
On 2012/09/05 22:11:49, James Hawkins wrote: > https://codereview.chromium.org/10918065/diff/1017/chrome/browser/favicon/favicon_service.h > File chrome/browser/favicon/favicon_service.h (right): > > https://codereview.chromium.org/10918065/diff/1017/chrome/browser/favicon/favicon_service.h#newcode34 ...
8 years, 3 months ago (2012-09-05 22:38:10 UTC) #17
James Hawkins
LGTM with nit. Make sure to TBR stevenjb if he's out of town. https://codereview.chromium.org/10918065/diff/1018/chrome/browser/ui/webui/ntp/app_launcher_handler.cc File ...
8 years, 3 months ago (2012-09-05 22:39:49 UTC) #18
Leandro Graciá Gil
On 2012/09/05 22:39:49, James Hawkins wrote: > LGTM with nit. Make sure to TBR stevenjb ...
8 years, 3 months ago (2012-09-05 23:02:28 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leandrogracia@chromium.org/10918065/1018
8 years, 3 months ago (2012-09-05 23:02:40 UTC) #20
commit-bot: I haz the power
8 years, 3 months ago (2012-09-06 03:42:39 UTC) #21
Change committed as 155113

Powered by Google App Engine
This is Rietveld 408576698