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

Issue 684983003: Add Observer in FaviconTabHelper (Closed)

Created:
6 years, 1 month ago by michaelbai
Modified:
6 years, 1 month ago
Reviewers:
jif, jif-google, sky, blundell
CC:
chromium-reviews, browser-components-watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

This patch added Observer in FaviconTabHelper, so the favicon retrieved by FaviconHandler could be used right away. BUG=428218 Committed: https://crrev.com/498547a3a74cbd304593305a5166a114000ef9b6 Cr-Commit-Position: refs/heads/master@{#302700}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Using observer #

Patch Set 3 : #

Total comments: 10

Patch Set 4 : Move setting active favicon to FaviconTabHelper #

Total comments: 7

Patch Set 5 : change unit tests #

Patch Set 6 : fix unit tests #

Patch Set 7 : #

Total comments: 8

Patch Set 8 : address comments #

Patch Set 9 : #

Total comments: 4

Patch Set 10 : addresses comments and sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -106 lines) Patch
M chrome/browser/favicon/favicon_handler.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/favicon/favicon_handler.cc View 1 2 3 4 5 6 7 7 chunks +30 lines, -28 lines 0 comments Download
M chrome/browser/favicon/favicon_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 19 chunks +65 lines, -42 lines 0 comments Download
M chrome/browser/favicon/favicon_tab_helper.h View 1 2 3 4 5 6 7 5 chunks +20 lines, -4 lines 0 comments Download
M chrome/browser/favicon/favicon_tab_helper.cc View 1 2 3 4 5 6 7 4 chunks +33 lines, -8 lines 0 comments Download
A chrome/browser/favicon/favicon_tab_helper_observer.h View 1 2 3 4 5 6 7 8 9 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M components/favicon/core/favicon_driver.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -15 lines 0 comments Download

Messages

Total messages: 25 (4 generated)
michaelbai
https://codereview.chromium.org/684983003/diff/1/chrome/browser/favicon/favicon_handler.cc File chrome/browser/favicon/favicon_handler.cc (right): https://codereview.chromium.org/684983003/diff/1/chrome/browser/favicon/favicon_handler.cc#newcode596 chrome/browser/favicon/favicon_handler.cc:596: } I just simply added code here because this ...
6 years, 1 month ago (2014-10-29 04:30:33 UTC) #2
sky
https://codereview.chromium.org/684983003/diff/1/chrome/browser/favicon/favicon_handler.cc File chrome/browser/favicon/favicon_handler.cc (right): https://codereview.chromium.org/684983003/diff/1/chrome/browser/favicon/favicon_handler.cc#newcode295 chrome/browser/favicon/favicon_handler.cc:295: NotifyFaviconUpdated(icon_url); Sorry, this is wrong. We shouldn't need the ...
6 years, 1 month ago (2014-10-29 15:50:55 UTC) #3
michaelbai
Added observer, PTAL, if you are fine with current design, I will add unit tests.
6 years, 1 month ago (2014-10-29 20:54:02 UTC) #4
sky
https://codereview.chromium.org/684983003/diff/40001/chrome/browser/favicon/favicon_handler.cc File chrome/browser/favicon/favicon_handler.cc (right): https://codereview.chromium.org/684983003/diff/40001/chrome/browser/favicon/favicon_handler.cc#newcode163 chrome/browser/favicon/favicon_handler.cc:163: inline GURL GetIconURL(const std::vector< Is it really necessary to ...
6 years, 1 month ago (2014-10-30 03:34:31 UTC) #5
michaelbai
PTAL, I didn't added unit tests yet because there is more FaviconDriver change. https://codereview.chromium.org/684983003/diff/40001/chrome/browser/favicon/favicon_handler.cc File ...
6 years, 1 month ago (2014-10-30 19:22:51 UTC) #6
sky
+jif@chromium.org, blundell@chromium.org, Hopefully one of them can answer your question here: https://codereview.chromium.org/684983003/diff/60001/components/favicon/core/favicon_driver.h#oldcode63
6 years, 1 month ago (2014-10-30 21:31:28 UTC) #8
sky
This approach is fine by me. https://codereview.chromium.org/684983003/diff/60001/components/favicon/core/favicon_driver.h File components/favicon/core/favicon_driver.h (right): https://codereview.chromium.org/684983003/diff/60001/components/favicon/core/favicon_driver.h#newcode52 components/favicon/core/favicon_driver.h:52: virtual void OnFaviconAvailable(const ...
6 years, 1 month ago (2014-10-30 21:33:49 UTC) #9
blundell
https://codereview.chromium.org/684983003/diff/60001/components/favicon/core/favicon_driver.h File components/favicon/core/favicon_driver.h (left): https://codereview.chromium.org/684983003/diff/60001/components/favicon/core/favicon_driver.h#oldcode63 components/favicon/core/favicon_driver.h:63: virtual void SetActiveFaviconValidity(bool validity) = 0; On 2014/10/30 19:22:51, ...
6 years, 1 month ago (2014-10-31 06:53:42 UTC) #10
jif-google
https://codereview.chromium.org/684983003/diff/60001/components/favicon/core/favicon_driver.h File components/favicon/core/favicon_driver.h (left): https://codereview.chromium.org/684983003/diff/60001/components/favicon/core/favicon_driver.h#oldcode63 components/favicon/core/favicon_driver.h:63: virtual void SetActiveFaviconValidity(bool validity) = 0; On 2014/10/30 19:22:51, ...
6 years, 1 month ago (2014-10-31 12:05:18 UTC) #12
michaelbai
https://codereview.chromium.org/684983003/diff/60001/components/favicon/core/favicon_driver.h File components/favicon/core/favicon_driver.h (left): https://codereview.chromium.org/684983003/diff/60001/components/favicon/core/favicon_driver.h#oldcode63 components/favicon/core/favicon_driver.h:63: virtual void SetActiveFaviconValidity(bool validity) = 0; On 2014/10/31 12:05:18, ...
6 years, 1 month ago (2014-10-31 15:57:57 UTC) #13
jif-google
https://codereview.chromium.org/684983003/diff/60001/components/favicon/core/favicon_driver.h File components/favicon/core/favicon_driver.h (left): https://codereview.chromium.org/684983003/diff/60001/components/favicon/core/favicon_driver.h#oldcode63 components/favicon/core/favicon_driver.h:63: virtual void SetActiveFaviconValidity(bool validity) = 0; On 2014/10/31 15:57:56, ...
6 years, 1 month ago (2014-10-31 16:51:30 UTC) #14
michaelbai
PTAL https://codereview.chromium.org/684983003/diff/60001/components/favicon/core/favicon_driver.h File components/favicon/core/favicon_driver.h (right): https://codereview.chromium.org/684983003/diff/60001/components/favicon/core/favicon_driver.h#newcode52 components/favicon/core/favicon_driver.h:52: virtual void OnFaviconAvailable(const gfx::Image& image, On 2014/10/30 21:33:49, ...
6 years, 1 month ago (2014-10-31 23:21:27 UTC) #15
michaelbai
ping
6 years, 1 month ago (2014-11-04 05:24:46 UTC) #16
jif
On 2014/11/04 05:24:46, michaelbai wrote: > ping lgtm
6 years, 1 month ago (2014-11-04 16:21:47 UTC) #17
sky
https://codereview.chromium.org/684983003/diff/120001/chrome/browser/favicon/favicon_handler.h File chrome/browser/favicon/favicon_handler.h (right): https://codereview.chromium.org/684983003/diff/120001/chrome/browser/favicon/favicon_handler.h#newcode224 chrome/browser/favicon/favicon_handler.h:224: // Notifies driver favicon available. driver->|driver_| https://codereview.chromium.org/684983003/diff/120001/chrome/browser/favicon/favicon_handler.h#newcode228 chrome/browser/favicon/favicon_handler.h:228: bool ...
6 years, 1 month ago (2014-11-04 18:11:43 UTC) #18
michaelbai
PTAL https://codereview.chromium.org/684983003/diff/120001/chrome/browser/favicon/favicon_handler.h File chrome/browser/favicon/favicon_handler.h (right): https://codereview.chromium.org/684983003/diff/120001/chrome/browser/favicon/favicon_handler.h#newcode224 chrome/browser/favicon/favicon_handler.h:224: // Notifies driver favicon available. On 2014/11/04 18:11:43, ...
6 years, 1 month ago (2014-11-04 19:26:57 UTC) #19
sky
LGTM https://codereview.chromium.org/684983003/diff/10004/chrome/browser/favicon/favicon_tab_helper_observer.h File chrome/browser/favicon/favicon_tab_helper_observer.h (right): https://codereview.chromium.org/684983003/diff/10004/chrome/browser/favicon/favicon_tab_helper_observer.h#newcode1 chrome/browser/favicon/favicon_tab_helper_observer.h:1: // Copyright (c) 2014 The Chromium Authors. All ...
6 years, 1 month ago (2014-11-04 21:06:31 UTC) #20
michaelbai
https://codereview.chromium.org/684983003/diff/10004/chrome/browser/favicon/favicon_tab_helper_observer.h File chrome/browser/favicon/favicon_tab_helper_observer.h (right): https://codereview.chromium.org/684983003/diff/10004/chrome/browser/favicon/favicon_tab_helper_observer.h#newcode1 chrome/browser/favicon/favicon_tab_helper_observer.h:1: // Copyright (c) 2014 The Chromium Authors. All rights ...
6 years, 1 month ago (2014-11-04 21:51:27 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/684983003/170001
6 years, 1 month ago (2014-11-04 21:52:32 UTC) #23
commit-bot: I haz the power
Committed patchset #10 (id:170001)
6 years, 1 month ago (2014-11-04 23:10:19 UTC) #24
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 23:11:16 UTC) #25
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/498547a3a74cbd304593305a5166a114000ef9b6
Cr-Commit-Position: refs/heads/master@{#302700}

Powered by Google App Engine
This is Rietveld 408576698