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

Issue 164703002: Don't leak WebHistoryService::Request on HistoryService shutdown. (Closed)

Created:
6 years, 10 months ago by davidben
Modified:
6 years, 10 months ago
Reviewers:
Patrick Dubroy, sky
CC:
chromium-reviews, browser-components-watch_chromium.org
Visibility:
Public.

Description

Don't leak WebHistoryService::Request on profile shutdown. As the profile is shutting down, all URLRequests from that profile must be destroyed. Instead of having HistoryService leak WebHistoryService's requests, WebHistoryService maintains expiration requests internally. Those don't get cancelled unless browser shutdown forces it to happen. BUG=342164 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252726

Patch Set 1 #

Total comments: 1

Patch Set 2 : Make WebHistoryService return void. #

Patch Set 3 : Remnant of previous version. #

Total comments: 2

Patch Set 4 : Style #

Total comments: 6

Patch Set 5 : dubroy comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -43 lines) Patch
M chrome/browser/history/history_service.cc View 1 2 chunks +11 lines, -13 lines 0 comments Download
M chrome/browser/history/web_history_service.h View 1 4 chunks +13 lines, -12 lines 0 comments Download
M chrome/browser/history/web_history_service.cc View 1 6 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/history_ui.h View 1 2 3 4 4 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/history_ui.cc View 1 2 3 4 4 chunks +13 lines, -8 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
davidben
dubroy: Main review, since it looks like you added the code. sky: OWNERS I do ...
6 years, 10 months ago (2014-02-13 21:00:40 UTC) #1
Patrick Dubroy
Sorry for the delay. I took a look at this one Friday but forgot to ...
6 years, 10 months ago (2014-02-17 14:01:13 UTC) #2
davidben
On 2014/02/17 14:01:13, Patrick Dubroy wrote: > Sorry for the delay. I took a look ...
6 years, 10 months ago (2014-02-18 21:58:22 UTC) #3
Patrick Dubroy
LGTM. I think there might be a nicer way to do this, but it would ...
6 years, 10 months ago (2014-02-19 17:00:26 UTC) #4
sky
https://codereview.chromium.org/164703002/diff/1/chrome/browser/history/history_service.cc File chrome/browser/history/history_service.cc (right): https://codereview.chromium.org/164703002/diff/1/chrome/browser/history/history_service.cc#newcode1172 chrome/browser/history/history_service.cc:1172: scoped_ptr<history::WebHistoryService::Request> request = This seems like a hack to ...
6 years, 10 months ago (2014-02-19 17:33:21 UTC) #5
davidben
On 2014/02/19 17:33:21, sky wrote: > https://codereview.chromium.org/164703002/diff/1/chrome/browser/history/history_service.cc > File chrome/browser/history/history_service.cc (right): > > https://codereview.chromium.org/164703002/diff/1/chrome/browser/history/history_service.cc#newcode1172 > ...
6 years, 10 months ago (2014-02-19 19:12:02 UTC) #6
sky
What about making WebHistoryService own the request with no return value? On Wed, Feb 19, ...
6 years, 10 months ago (2014-02-19 21:16:56 UTC) #7
davidben
On 2014/02/19 21:16:56, sky wrote: > What about making WebHistoryService own the request with no ...
6 years, 10 months ago (2014-02-19 21:28:28 UTC) #8
sky
Are we using the callback anywhere? On Wed, Feb 19, 2014 at 1:28 PM, <davidben@chromium.org> ...
6 years, 10 months ago (2014-02-19 21:58:57 UTC) #9
davidben
How's this version?
6 years, 10 months ago (2014-02-19 23:17:43 UTC) #10
sky
LGTM https://codereview.chromium.org/164703002/diff/220001/chrome/browser/ui/webui/history_ui.cc File chrome/browser/ui/webui/history_ui.cc (right): https://codereview.chromium.org/164703002/diff/220001/chrome/browser/ui/webui/history_ui.cc#newcode390 chrome/browser/ui/webui/history_ui.cc:390: : pending_delete_requests_(0), weak_factory_(this) { nit: one param per ...
6 years, 10 months ago (2014-02-19 23:20:10 UTC) #11
davidben
https://codereview.chromium.org/164703002/diff/220001/chrome/browser/ui/webui/history_ui.cc File chrome/browser/ui/webui/history_ui.cc (right): https://codereview.chromium.org/164703002/diff/220001/chrome/browser/ui/webui/history_ui.cc#newcode390 chrome/browser/ui/webui/history_ui.cc:390: : pending_delete_requests_(0), weak_factory_(this) { On 2014/02/19 23:20:10, sky wrote: ...
6 years, 10 months ago (2014-02-19 23:21:20 UTC) #12
davidben
On 2014/02/19 23:21:20, David Benjamin wrote: > https://codereview.chromium.org/164703002/diff/220001/chrome/browser/ui/webui/history_ui.cc > File chrome/browser/ui/webui/history_ui.cc (right): > > https://codereview.chromium.org/164703002/diff/220001/chrome/browser/ui/webui/history_ui.cc#newcode390 ...
6 years, 10 months ago (2014-02-19 23:25:03 UTC) #13
Patrick Dubroy
https://codereview.chromium.org/164703002/diff/300001/chrome/browser/history/history_service.cc File chrome/browser/history/history_service.cc (right): https://codereview.chromium.org/164703002/diff/300001/chrome/browser/history/history_service.cc#newcode1171 chrome/browser/history/history_service.cc:1171: base::Bind(&ExpireWebHistoryComplete)); I'd just use base::DoNothing() here. https://codereview.chromium.org/164703002/diff/300001/chrome/browser/ui/webui/history_ui.cc File chrome/browser/ui/webui/history_ui.cc ...
6 years, 10 months ago (2014-02-20 12:56:55 UTC) #14
davidben
https://codereview.chromium.org/164703002/diff/300001/chrome/browser/history/history_service.cc File chrome/browser/history/history_service.cc (right): https://codereview.chromium.org/164703002/diff/300001/chrome/browser/history/history_service.cc#newcode1171 chrome/browser/history/history_service.cc:1171: base::Bind(&ExpireWebHistoryComplete)); On 2014/02/20 12:56:55, Patrick Dubroy wrote: > I'd ...
6 years, 10 months ago (2014-02-20 18:08:00 UTC) #15
Patrick Dubroy
lgtm
6 years, 10 months ago (2014-02-21 21:25:36 UTC) #16
davidben
The CQ bit was checked by davidben@chromium.org
6 years, 10 months ago (2014-02-21 21:49:59 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidben@chromium.org/164703002/360001
6 years, 10 months ago (2014-02-21 21:50:32 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-21 22:59:22 UTC) #19
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=268173
6 years, 10 months ago (2014-02-21 22:59:23 UTC) #20
davidben
On 2014/02/21 22:59:23, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 10 months ago (2014-02-21 23:22:53 UTC) #21
davidben
The CQ bit was checked by davidben@chromium.org
6 years, 10 months ago (2014-02-21 23:23:06 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidben@chromium.org/164703002/360001
6 years, 10 months ago (2014-02-21 23:28:46 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidben@chromium.org/164703002/360001
6 years, 10 months ago (2014-02-22 01:26:49 UTC) #24
commit-bot: I haz the power
6 years, 10 months ago (2014-02-22 01:49:50 UTC) #25
Message was sent while issue was closed.
Change committed as 252726

Powered by Google App Engine
This is Rietveld 408576698