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

Issue 291643002: Move favicon callbacks to favicon_base (Closed)

Created:
6 years, 7 months ago by Jiang Jiang
Modified:
6 years, 7 months ago
Reviewers:
Nico, sdefresne, blundell
CC:
chromium-reviews, tfarina, browser-components-watch_chromium.org, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move favicon callbacks to favicon_base Move FaviconImageCallback, FaviconResultsCallback and FaviconRawCallback to favicon_base, those types are shared between favicon and history components (methods are declared in FaviconService, but it delegates the work to HistoryService) and only uses types from base:: and favicon_base:: namespaces. Also BookmarkClient::FaviconImageCallback is a copy of FaviconService::FaviconImageCallback, replace it with favicon_base:: version. BUG=372321 TBR=thakis for //chrome outside of //chrome/browser/history, //chrome/browser/favicon Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272065

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix Android build #

Patch Set 3 : Fix review issues #

Patch Set 4 : Fix sync compile #

Patch Set 5 : Fix Android unittest #

Total comments: 13

Patch Set 6 : Rebase #

Patch Set 7 : Fix to comments #

Total comments: 1

Patch Set 8 : Fix comments and gyp #

Patch Set 9 : Rebase and add TBR #

Patch Set 10 : Fix missing header #

Patch Set 11 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -115 lines) Patch
M chrome/browser/android/favicon_helper.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/chrome_bookmark_client.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/bookmarks/chrome_bookmark_client.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_web_ui.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_web_ui.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/favicon/favicon_handler.h View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/favicon/favicon_handler.cc View 1 2 3 4 5 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/favicon/favicon_handler_unittest.cc View 1 2 3 4 5 7 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/favicon/favicon_service.h View 1 2 3 4 5 6 13 chunks +26 lines, -42 lines 0 comments Download
M chrome/browser/favicon/favicon_service.cc View 16 chunks +21 lines, -21 lines 0 comments Download
M chrome/browser/favicon/favicon_tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/history/android/sqlite_cursor.h View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/history/android/sqlite_cursor.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/history/android/sqlite_cursor_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/history/history_service.h View 7 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/history/history_service.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/sync/test/integration/bookmarks_helper.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download
M components/bookmarks/browser/bookmark_client.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +2 lines, -9 lines 0 comments Download
M components/bookmarks/browser/bookmark_client.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M components/favicon_base.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A components/favicon_base/favicon_callback.h View 1 2 3 4 5 6 7 1 chunk +33 lines, -0 lines 0 comments Download
M components/favicon_base/favicon_types.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 35 (0 generated)
tfarina
https://codereview.chromium.org/291643002/diff/1/components/bookmarks/core/browser/bookmark_client.h File components/bookmarks/core/browser/bookmark_client.h (right): https://codereview.chromium.org/291643002/diff/1/components/bookmarks/core/browser/bookmark_client.h#newcode24 components/bookmarks/core/browser/bookmark_client.h:24: struct FaviconImageResult; you can remove this forward declaration now, ...
6 years, 7 months ago (2014-05-16 20:30:17 UTC) #1
Jiang Jiang
6 years, 7 months ago (2014-05-16 20:48:34 UTC) #2
Jiang Jiang
https://codereview.chromium.org/291643002/diff/1/components/bookmarks/core/browser/bookmark_client.h File components/bookmarks/core/browser/bookmark_client.h (right): https://codereview.chromium.org/291643002/diff/1/components/bookmarks/core/browser/bookmark_client.h#newcode24 components/bookmarks/core/browser/bookmark_client.h:24: struct FaviconImageResult; On 2014/05/16 20:30:17, tfarina wrote: > you ...
6 years, 7 months ago (2014-05-16 20:56:15 UTC) #3
blundell
Sylvain, Could you do an initial review? https://codereview.chromium.org/291643002/diff/80001/components/favicon_base/favicon_callback.h File components/favicon_base/favicon_callback.h (right): https://codereview.chromium.org/291643002/diff/80001/components/favicon_base/favicon_callback.h#newcode17 components/favicon_base/favicon_callback.h:17: // Callback ...
6 years, 7 months ago (2014-05-19 07:50:30 UTC) #4
sdefresne
Looks good once the comments have been fixed. https://codereview.chromium.org/291643002/diff/80001/chrome/browser/favicon/favicon_service.h File chrome/browser/favicon/favicon_service.h (left): https://codereview.chromium.org/291643002/diff/80001/chrome/browser/favicon/favicon_service.h#oldcode50 chrome/browser/favicon/favicon_service.h:50: // ...
6 years, 7 months ago (2014-05-19 14:36:39 UTC) #5
blundell
https://codereview.chromium.org/291643002/diff/80001/components/favicon_base/favicon_callback.h File components/favicon_base/favicon_callback.h (right): https://codereview.chromium.org/291643002/diff/80001/components/favicon_base/favicon_callback.h#newcode17 components/favicon_base/favicon_callback.h:17: // Callback for FaviconService::GetFaviconImage(), s/for functions returning/that can be ...
6 years, 7 months ago (2014-05-19 15:12:58 UTC) #6
Jiang Jiang
https://codereview.chromium.org/291643002/diff/80001/chrome/browser/favicon/favicon_service.h File chrome/browser/favicon/favicon_service.h (left): https://codereview.chromium.org/291643002/diff/80001/chrome/browser/favicon/favicon_service.h#oldcode50 chrome/browser/favicon/favicon_service.h:50: // |FaviconImageResult::image| is constructed from the bitmaps for the ...
6 years, 7 months ago (2014-05-19 15:56:40 UTC) #7
sdefresne
https://codereview.chromium.org/291643002/diff/80001/components/favicon_base/favicon_callback.h File components/favicon_base/favicon_callback.h (right): https://codereview.chromium.org/291643002/diff/80001/components/favicon_base/favicon_callback.h#newcode30 components/favicon_base/favicon_callback.h:30: // Callback for GetRawFavicon(), GetRawFaviconForURL() and On 2014/05/19 15:12:59, ...
6 years, 7 months ago (2014-05-19 16:30:04 UTC) #8
blundell
Sylvain, Could you take one more pass over the comments in favicon_callback.h and favicon_service.h?
6 years, 7 months ago (2014-05-20 11:51:20 UTC) #9
sdefresne
lgtm
6 years, 7 months ago (2014-05-20 13:56:22 UTC) #10
blundell
LGTM with comment addressed You can TBR=thakis for //chrome OWNERS https://codereview.chromium.org/291643002/diff/110001/components/favicon_base/favicon_callback.h File components/favicon_base/favicon_callback.h (right): https://codereview.chromium.org/291643002/diff/110001/components/favicon_base/favicon_callback.h#newcode5 ...
6 years, 7 months ago (2014-05-20 14:12:18 UTC) #11
Jiang Jiang
On 2014/05/20 14:12:18, blundell wrote: > LGTM with comment addressed > > You can TBR=thakis ...
6 years, 7 months ago (2014-05-20 16:19:10 UTC) #12
Jiang Jiang
The CQ bit was checked by jiangj@opera.com
6 years, 7 months ago (2014-05-20 16:19:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiangj@opera.com/291643002/150001
6 years, 7 months ago (2014-05-20 16:19:35 UTC) #14
Jiang Jiang
The CQ bit was unchecked by jiangj@opera.com
6 years, 7 months ago (2014-05-20 17:04:07 UTC) #15
Jiang Jiang
The CQ bit was checked by jiangj@opera.com
6 years, 7 months ago (2014-05-20 17:05:22 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiangj@opera.com/291643002/170001
6 years, 7 months ago (2014-05-20 17:06:14 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-20 19:49:26 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-20 20:04:31 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/144195)
6 years, 7 months ago (2014-05-20 20:04:32 UTC) #20
Jiang Jiang
The CQ bit was checked by jiangj@opera.com
6 years, 7 months ago (2014-05-20 22:45:50 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiangj@opera.com/291643002/170001
6 years, 7 months ago (2014-05-20 22:46:40 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-20 23:20:08 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-20 23:37:49 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/144286)
6 years, 7 months ago (2014-05-20 23:37:50 UTC) #25
sdefresne
On 2014/05/20 23:37:50, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 7 months ago (2014-05-21 08:10:11 UTC) #26
Jiang Jiang
On 2014/05/21 08:10:11, sdefresne wrote: > On 2014/05/20 23:37:50, I haz the power (commit-bot) wrote: ...
6 years, 7 months ago (2014-05-21 08:15:56 UTC) #27
blundell
TBR=thakis for //chrome outside of //chrome/browser/history, //chrome/browser/favicon (Jiang: note that when adding a TBR, you ...
6 years, 7 months ago (2014-05-21 08:22:02 UTC) #28
Jiang Jiang
On 2014/05/21 08:22:02, blundell wrote: > TBR=thakis for //chrome outside of //chrome/browser/history, > //chrome/browser/favicon > ...
6 years, 7 months ago (2014-05-21 09:20:56 UTC) #29
Jiang Jiang
The CQ bit was checked by jiangj@opera.com
6 years, 7 months ago (2014-05-21 09:21:28 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiangj@opera.com/291643002/190001
6 years, 7 months ago (2014-05-21 09:23:43 UTC) #31
Jiang Jiang
The CQ bit was unchecked by jiangj@opera.com
6 years, 7 months ago (2014-05-21 18:30:47 UTC) #32
Jiang Jiang
The CQ bit was checked by jiangj@opera.com
6 years, 7 months ago (2014-05-21 18:30:55 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiangj@opera.com/291643002/190001
6 years, 7 months ago (2014-05-21 19:57:53 UTC) #34
commit-bot: I haz the power
6 years, 7 months ago (2014-05-22 03:11:20 UTC) #35
Message was sent while issue was closed.
Change committed as 272065

Powered by Google App Engine
This is Rietveld 408576698