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

Issue 352623002: Port History::QueryMostVisitedURLs to use CancelableTaskTracker (Closed)

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

Description

Port History::QueryMostVisitedURLs to use CancelableTaskTracker The callback no longer receive a HistoryService::Handle, but the client should use the base::CancelableTaskTracker::TaskId to cancel a pending call. The callback receive a "const history::MostVisitedURLList*" as it is not possible to pass a reference without adding a wrapper function. Since there is a single client (apart from unit tests) this is the simplest way to do it. Merge HistoryBackend::QueryMostVisitedURLsImpl into the facade function since they now have the same prototype. BUG=371818 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280530

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -96 lines) Patch
M chrome/browser/history/history_backend.h View 1 2 chunks +3 lines, -9 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 3 chunks +18 lines, -35 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 3 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/history/history_service.h View 1 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/history/history_service.cc View 1 1 chunk +13 lines, -7 lines 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 6 chunks +27 lines, -23 lines 0 comments Download
M chrome/browser/history/top_sites_impl.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/history/top_sites_impl.cc View 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
sdefresne
Please take a look (I think you're starting to get tired of those CLs).
6 years, 6 months ago (2014-06-24 15:51:06 UTC) #1
sdefresne
+haaawk FYI
6 years, 6 months ago (2014-06-25 14:29:58 UTC) #2
blundell
lgtm https://codereview.chromium.org/352623002/diff/1/chrome/browser/history/history_service.h File chrome/browser/history/history_service.h (right): https://codereview.chromium.org/352623002/diff/1/chrome/browser/history/history_service.h#newcode314 chrome/browser/history/history_service.h:314: typedef base::Callback<void(const history::MostVisitedURLList*)> I think that we avoid ...
6 years, 6 months ago (2014-06-26 09:21:54 UTC) #3
sdefresne
On 2014/06/26 09:21:54, blundell wrote: > lgtm > > https://codereview.chromium.org/352623002/diff/1/chrome/browser/history/history_service.h > File chrome/browser/history/history_service.h (right): > ...
6 years, 5 months ago (2014-06-28 08:00:41 UTC) #4
sdefresne
The CQ bit was checked by sdefresne@chromium.org
6 years, 5 months ago (2014-06-28 08:06:46 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/352623002/80001
6 years, 5 months ago (2014-06-28 08:07:37 UTC) #6
sdefresne
The CQ bit was unchecked by sdefresne@chromium.org
6 years, 5 months ago (2014-06-28 08:19:56 UTC) #7
sdefresne
The CQ bit was checked by sdefresne@chromium.org
6 years, 5 months ago (2014-06-28 08:21:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/352623002/100001
6 years, 5 months ago (2014-06-28 08:21:40 UTC) #9
commit-bot: I haz the power
6 years, 5 months ago (2014-06-28 20:47:35 UTC) #10
Message was sent while issue was closed.
Change committed as 280530

Powered by Google App Engine
This is Rietveld 408576698