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

Issue 1272413002: Remove useless FaviconHandler::PageChangedSinceFaviconWasRequested() (Closed)

Created:
5 years, 4 months ago by pkotwicz
Modified:
5 years, 2 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove useless FaviconHandler::PageChangedSinceFaviconWasRequested() Remove FaviconHandler::PageChangedSinceFaviconWasRequested() since both - FaviconHandler::url_ changes (FaviconHandler::FetchFavicon()) - The NavigationController's last committed URL changes (NavigationControllerImpl::RendererDidNavigate()) only as a result of NavigatorImpl::DidNavigate() BUG=517089 TEST=None Committed: https://crrev.com/38c2b85c4d3f1426e6abab4990779d10edb0e550 Cr-Commit-Position: refs/heads/master@{#351113}

Patch Set 1 : #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Total comments: 5

Patch Set 7 : #

Patch Set 8 : #

Total comments: 4

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -109 lines) Patch
M components/favicon/content/content_favicon_driver.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -2 lines 0 comments Download
M components/favicon/core/favicon_driver.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M components/favicon/core/favicon_driver_impl.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M components/favicon/core/favicon_driver_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -4 lines 0 comments Download
M components/favicon/core/favicon_handler.h View 1 2 3 4 5 6 7 7 chunks +9 lines, -20 lines 0 comments Download
M components/favicon/core/favicon_handler.cc View 1 2 3 4 5 6 7 20 chunks +29 lines, -62 lines 0 comments Download
M components/favicon/core/favicon_handler_unittest.cc View 1 2 3 4 5 6 7 8 11 chunks +12 lines, -11 lines 0 comments Download
M components/favicon/ios/web_favicon_driver.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -0 lines 0 comments Download
M components/favicon/ios/web_favicon_driver.cc View 1 2 3 4 5 6 7 5 chunks +18 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 76 (21 generated)
pkotwicz
Steven can you please take a look? I am writing this CL because the FaviconHandler ...
5 years, 4 months ago (2015-08-05 22:29:54 UTC) #3
stevenjb
On 2015/08/05 22:29:54, pkotwicz wrote: > Steven can you please take a look? > > ...
5 years, 4 months ago (2015-08-06 15:14:05 UTC) #4
pkotwicz
Scott, can you please take a look?
5 years, 4 months ago (2015-08-06 15:27:38 UTC) #6
pkotwicz
Update: It looks like changing window.location.hash does not cause FaviconHandler::OnUpdateFaviconURL() to get called. I still ...
5 years, 4 months ago (2015-08-06 16:25:17 UTC) #7
sky
Where does the code now handle the case of the url changing after we start ...
5 years, 4 months ago (2015-08-06 18:14:08 UTC) #8
pkotwicz
Scott, I do not understand comment #8. I have tried changing the if statement in ...
5 years, 4 months ago (2015-08-06 21:49:57 UTC) #9
sky
What I meant was we start the query for history and then the page url ...
5 years, 4 months ago (2015-08-10 17:23:36 UTC) #10
sky
LGTM https://codereview.chromium.org/1272413002/diff/20001/components/favicon/core/favicon_handler.h File components/favicon/core/favicon_handler.h (right): https://codereview.chromium.org/1272413002/diff/20001/components/favicon/core/favicon_handler.h#newcode237 components/favicon/core/favicon_handler.h:237: bool PageChangedSinceFaviconWasRequested(); remove this.
5 years, 4 months ago (2015-08-10 19:22:39 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272413002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272413002/60001
5 years, 4 months ago (2015-08-10 20:26:39 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/96462)
5 years, 4 months ago (2015-08-10 21:10:22 UTC) #17
pkotwicz
sdefresne@ can you please take a look at whether this CL is ok w.r.t to ...
5 years, 4 months ago (2015-08-13 02:26:35 UTC) #19
pkotwicz
stuartmorgan@ can you please take a look? I have changed the CL so that it ...
5 years, 4 months ago (2015-08-23 19:59:47 UTC) #22
pkotwicz
eugenebut@ can you please take a look at the iOS changes in this CL? It ...
5 years, 4 months ago (2015-08-24 19:27:32 UTC) #26
pkotwicz
rohitrao@ can you please take a look at the iOS changes in this CL? (Sorry, ...
5 years, 3 months ago (2015-08-26 16:15:40 UTC) #28
sdefresne
sorry this review fell through my inbox, lgtm https://codereview.chromium.org/1272413002/diff/180001/components/favicon/ios/web_favicon_driver.cc File components/favicon/ios/web_favicon_driver.cc (right): https://codereview.chromium.org/1272413002/diff/180001/components/favicon/ios/web_favicon_driver.cc#newcode81 components/favicon/ios/web_favicon_driver.cc:81: return ...
5 years, 3 months ago (2015-08-26 16:26:07 UTC) #29
pkotwicz
rohitrao@ ping!
5 years, 3 months ago (2015-08-27 16:56:14 UTC) #30
stuartmorgan
Two general questions, since the overall correctness of this isn't clear to me (not to ...
5 years, 3 months ago (2015-09-03 23:11:29 UTC) #31
pkotwicz
stuartmorgan@ can you please take another look? > Two general questions, since the overall correctness ...
5 years, 3 months ago (2015-09-08 19:24:44 UTC) #34
pkotwicz
stuartmorgan@ ping!
5 years, 3 months ago (2015-09-10 15:00:28 UTC) #35
stuartmorgan
iOS portion LGTM
5 years, 3 months ago (2015-09-10 20:52:09 UTC) #36
pkotwicz
Scott, can you please take a look at the new CL? I have added the ...
5 years, 3 months ago (2015-09-10 23:30:32 UTC) #37
sky
https://codereview.chromium.org/1272413002/diff/260001/components/favicon/core/favicon_driver.h File components/favicon/core/favicon_driver.h (right): https://codereview.chromium.org/1272413002/diff/260001/components/favicon/core/favicon_driver.h#newcode83 components/favicon/core/favicon_driver.h:83: virtual bool ShouldSendFaviconAvailableNotifications() = 0; This feels awkward. Why ...
5 years, 3 months ago (2015-09-11 15:27:15 UTC) #38
pkotwicz
Scott, can you please take another look? https://codereview.chromium.org/1272413002/diff/260001/components/favicon/core/favicon_driver.h File components/favicon/core/favicon_driver.h (right): https://codereview.chromium.org/1272413002/diff/260001/components/favicon/core/favicon_driver.h#newcode83 components/favicon/core/favicon_driver.h:83: virtual bool ...
5 years, 3 months ago (2015-09-11 17:39:58 UTC) #40
sky
https://codereview.chromium.org/1272413002/diff/260001/components/favicon/core/favicon_driver.h File components/favicon/core/favicon_driver.h (right): https://codereview.chromium.org/1272413002/diff/260001/components/favicon/core/favicon_driver.h#newcode83 components/favicon/core/favicon_driver.h:83: virtual bool ShouldSendFaviconAvailableNotifications() = 0; On 2015/09/11 17:39:58, pkotwicz ...
5 years, 3 months ago (2015-09-11 19:53:21 UTC) #41
pkotwicz
stuartmorgan@: Is there a way that WebFaviconDriver can be notified when NavigationManager::GetVisibleItem() changes?
5 years, 3 months ago (2015-09-11 20:26:17 UTC) #42
pkotwicz
stuartmorgan@: Is there a way that WebFaviconDriver can be notified when NavigationManager::GetVisibleItem() changes? (I am ...
5 years, 3 months ago (2015-09-11 20:28:35 UTC) #43
stuartmorgan
On 2015/09/11 20:28:35, pkotwicz wrote: > stuartmorgan@: Is there a way that WebFaviconDriver can be ...
5 years, 3 months ago (2015-09-11 20:40:40 UTC) #44
stuartmorgan
Capturing from some discussion: my basic feeling is that what's being done for the content ...
5 years, 3 months ago (2015-09-11 22:38:26 UTC) #45
sky
On Fri, Sep 11, 2015 at 3:38 PM, <stuartmorgan@chromium.org> wrote: > Capturing from some discussion: ...
5 years, 3 months ago (2015-09-11 23:22:14 UTC) #46
pkotwicz
I think that what stuartmorgan@ would like it if there was a method FaviconDriver::SetNavigationEntryFavicon(const GURL& ...
5 years, 3 months ago (2015-09-11 23:47:03 UTC) #47
pkotwicz
I spent a lot of time thinking. - This CL is now less awkward. It ...
5 years, 3 months ago (2015-09-14 02:04:20 UTC) #48
pkotwicz
sky@ and stuartmorgan@ can you please take another look? I spent a lot of time ...
5 years, 3 months ago (2015-09-14 02:04:50 UTC) #49
pkotwicz
sky@ Ping!
5 years, 3 months ago (2015-09-16 00:45:45 UTC) #52
sky
https://codereview.chromium.org/1272413002/diff/360001/components/favicon/core/favicon_driver_impl.cc File components/favicon/core/favicon_driver_impl.cc (right): https://codereview.chromium.org/1272413002/diff/360001/components/favicon/core/favicon_driver_impl.cc#newcode113 components/favicon/core/favicon_driver_impl.cc:113: if (page_url != GetActiveURL()) Shouldn't this be an a ...
5 years, 3 months ago (2015-09-16 15:14:24 UTC) #53
pkotwicz
https://codereview.chromium.org/1272413002/diff/360001/components/favicon/core/favicon_driver_impl.cc File components/favicon/core/favicon_driver_impl.cc (right): https://codereview.chromium.org/1272413002/diff/360001/components/favicon/core/favicon_driver_impl.cc#newcode113 components/favicon/core/favicon_driver_impl.cc:113: if (page_url != GetActiveURL()) I still check this on ...
5 years, 3 months ago (2015-09-16 15:17:56 UTC) #54
stuartmorgan
https://codereview.chromium.org/1272413002/diff/360001/components/favicon/core/favicon_driver_impl.cc File components/favicon/core/favicon_driver_impl.cc (right): https://codereview.chromium.org/1272413002/diff/360001/components/favicon/core/favicon_driver_impl.cc#newcode113 components/favicon/core/favicon_driver_impl.cc:113: if (page_url != GetActiveURL()) On 2015/09/16 15:17:56, pkotwicz wrote: ...
5 years, 3 months ago (2015-09-16 18:35:58 UTC) #55
pkotwicz
sky@ and stuartmorgan@ can you please take another look? https://codereview.chromium.org/1272413002/diff/360001/components/favicon/core/favicon_driver_impl.cc File components/favicon/core/favicon_driver_impl.cc (right): https://codereview.chromium.org/1272413002/diff/360001/components/favicon/core/favicon_driver_impl.cc#newcode113 components/favicon/core/favicon_driver_impl.cc:113: ...
5 years, 3 months ago (2015-09-16 18:47:57 UTC) #56
stuartmorgan
On 2015/09/11 23:22:14, sky wrote: > On Fri, Sep 11, 2015 at 3:38 PM, <mailto:stuartmorgan@chromium.org> ...
5 years, 3 months ago (2015-09-16 18:55:26 UTC) #57
pkotwicz
I will defer to sky@ for design/architecture guidance. I will implement the design that stuartmorgan@ ...
5 years, 3 months ago (2015-09-16 19:17:47 UTC) #58
sky
On Wed, Sep 16, 2015 at 11:55 AM, <stuartmorgan@chromium.org> wrote: > On 2015/09/11 23:22:14, sky ...
5 years, 3 months ago (2015-09-16 20:11:55 UTC) #59
pkotwicz
sky@ and stuartmorgan@ can you please take another look? I agree that it is not ...
5 years, 3 months ago (2015-09-18 01:06:14 UTC) #60
pkotwicz
Ping!
5 years, 3 months ago (2015-09-22 00:50:06 UTC) #61
stuartmorgan
I'm not sure I'm understanding the current patch; if you're checking for URL changes on ...
5 years, 3 months ago (2015-09-22 21:57:57 UTC) #62
pkotwicz
The iOS-specific tracking is because FaviconHandler currently checks WebFaviconDriver::GetActiveFaviconValidity() and WebFaviconDriver::GetActiveFaviconURL(). I have a CL ...
5 years, 3 months ago (2015-09-22 22:04:10 UTC) #63
stuartmorgan
Okay, iOS lgtm then.
5 years, 3 months ago (2015-09-22 23:22:23 UTC) #64
pkotwicz
Scott, can you please take another look?
5 years, 3 months ago (2015-09-22 23:26:00 UTC) #65
sky
Can you provide an outline of the changes you're planning on doing?
5 years, 3 months ago (2015-09-22 23:43:31 UTC) #66
pkotwicz
My goal is to make the code in FaviconHandler more understandable. The end goal is ...
5 years, 3 months ago (2015-09-23 00:34:16 UTC) #67
pkotwicz
For instance, https://codereview.chromium.org/1295733002/ implements: "Add an early exit so that if FaviconHandler::OnUpdateFaviconURL() is called twice ...
5 years, 3 months ago (2015-09-23 00:39:49 UTC) #68
sky
I think FaviconHandler should be changed to focus on a single url. By that I ...
5 years, 3 months ago (2015-09-23 18:19:46 UTC) #69
pkotwicz
Making FaviconHandler take a single URL in the constructor is reasonable. I think that this ...
5 years, 3 months ago (2015-09-23 18:36:30 UTC) #70
sky
LGTM
5 years, 3 months ago (2015-09-23 21:55:11 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272413002/390001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272413002/390001
5 years, 2 months ago (2015-09-28 18:24:24 UTC) #74
commit-bot: I haz the power
Committed patchset #10 (id:390001)
5 years, 2 months ago (2015-09-28 19:31:01 UTC) #75
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 19:32:30 UTC) #76
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/38c2b85c4d3f1426e6abab4990779d10edb0e550
Cr-Commit-Position: refs/heads/master@{#351113}

Powered by Google App Engine
This is Rietveld 408576698