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

Issue 349153006: Port HistoryService::QueryRedirects{From,To} to CancelableTaskTracker (Closed)

Created:
6 years, 6 months ago by sdefresne
Modified:
6 years, 6 months ago
CC:
chromium-reviews, browser-components-watch_chromium.org, brettw
Project:
chromium
Visibility:
Public.

Description

Port HistoryService::QueryRedirects{From,To} to CancelableTaskTracker The callback no longer receive a HistoryService::Handle but instead a base::CancelableTaskTracker::TaskId that they can use to cancel the task via the base::CancelableTaskTracker. Remove HistoryBackend::GetMostRecentRedirects{From,To} that backed the HistoryBackend::QueryRedirects{From,To} as they now have the same interface. Remove the success and url parameters to the QueryRedirectsCallback as the url can be bound by the caller if required (most of them don't) and no code path used the success value. BUG=371818 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279727

Patch Set 1 #

Total comments: 8

Patch Set 2 : Remove unused url field #

Patch Set 3 : Address comments of refactoring #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -153 lines) Patch
M chrome/browser/autocomplete/history_url_provider.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 2 chunks +13 lines, -21 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 5 chunks +25 lines, -48 lines 0 comments Download
M chrome/browser/history/history_marshaling.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/history/history_service.h View 1 2 1 chunk +12 lines, -13 lines 0 comments Download
M chrome/browser/history/history_service.cc View 1 2 1 chunk +23 lines, -10 lines 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 2 3 chunks +10 lines, -15 lines 0 comments Download
M chrome/browser/history/redirect_browsertest.cc View 1 2 2 chunks +10 lines, -12 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 chunks +10 lines, -13 lines 0 comments Download
M chrome/browser/safe_browsing/malware_details_history.h View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/malware_details_history.cc View 1 2 1 chunk +7 lines, -11 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
sdefresne
droger: please take a look jochen: OWNERS of refactored client code in //chrome/browser/safe_browsing
6 years, 6 months ago (2014-06-23 15:35:42 UTC) #1
sdefresne
+haaawk since this may break clank code
6 years, 6 months ago (2014-06-23 15:37:42 UTC) #2
droger
Where are the requests actually cancelled? Do you actually need CancelableTaskTracker, or is CancelableCallback enough? ...
6 years, 6 months ago (2014-06-23 15:49:48 UTC) #3
sdefresne
+brettw: FYI
6 years, 6 months ago (2014-06-23 16:11:28 UTC) #4
droger
To answer my own question about CancelableCallback: it is not possible to use it here ...
6 years, 6 months ago (2014-06-23 16:50:35 UTC) #5
sdefresne
PTAL https://codereview.chromium.org/349153006/diff/1/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/349153006/diff/1/chrome/browser/history/history_backend.cc#newcode1279 chrome/browser/history/history_backend.cc:1279: result->success = GetMostRecentRedirectsFrom(url, &result->redirects); On 2014/06/23 16:50:35, droger ...
6 years, 6 months ago (2014-06-24 13:41:00 UTC) #6
droger
lgtm
6 years, 6 months ago (2014-06-24 13:51:13 UTC) #7
jochen (gone - plz use gerrit)
lgtm
6 years, 6 months ago (2014-06-24 13:59:19 UTC) #8
sdefresne
droger: as discussed, PTAL
6 years, 6 months ago (2014-06-24 16:25:03 UTC) #9
droger
On 2014/06/24 16:25:03, sdefresne wrote: > droger: as discussed, PTAL Thanks, it's a simpler now.
6 years, 6 months ago (2014-06-24 16:34:51 UTC) #10
sdefresne
The CQ bit was checked by sdefresne@chromium.org
6 years, 6 months ago (2014-06-25 12:14:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/349153006/60001
6 years, 6 months ago (2014-06-25 12:15:05 UTC) #12
commit-bot: I haz the power
6 years, 6 months ago (2014-06-25 16:24:46 UTC) #13
Message was sent while issue was closed.
Change committed as 279727

Powered by Google App Engine
This is Rietveld 408576698