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

Issue 930363002: Remove adapter method on HistoryBackend delegating to AndroidProviderBackend (Closed)

Created:
5 years, 10 months ago by sdefresne
Modified:
5 years, 10 months ago
CC:
browser-components-watch_chromium.org, chromium-reviews, maniscalco+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, tim+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove adapter method on HistoryBackend delegating to AndroidProviderBackend In order to remove the dependency of HistoryBackend on AndroidProviderBackend, remove the adapter method that just forward their implementation to it. Also remove methods that advance or delete a AndroidStatement as they do depend on the HistoryBackend. Convert the adapter method in adapter free function wrapped in HistoryDBTask so that the code only use the public API of HistoryService and HistoryBackend. Return the base::CancelableTaskTracker::TaskId from the ScheduleDBTask method on HistoryService so that AndroidHistoryProviderService can return it and the task be properly cancellable. BUG=453790 Committed: https://crrev.com/3983849f247fcc47e0c05430b81d6481453c804e Cr-Commit-Position: refs/heads/master@{#317331}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Remove usage of uniform initialization syntax #

Patch Set 3 : Rebase #

Total comments: 2

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -367 lines) Patch
M chrome/browser/history/android/android_history_provider_service.cc View 1 2 3 11 chunks +292 lines, -132 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 2 chunks +5 lines, -88 lines 0 comments Download
D chrome/browser/history/history_backend_android.cc View 1 chunk +0 lines, -135 lines 0 comments Download
M chrome/browser/history/history_service.h View 1 2 3 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/history/history_service.cc View 1 2 3 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 17 (6 generated)
sdefresne
PTAL
5 years, 10 months ago (2015-02-17 18:11:08 UTC) #2
droger
Looks good in general. https://codereview.chromium.org/930363002/diff/1/chrome/browser/history/android/android_history_provider_service.cc File chrome/browser/history/android/android_history_provider_service.cc (right): https://codereview.chromium.org/930363002/diff/1/chrome/browser/history/android/android_history_provider_service.cc#newcode31 chrome/browser/history/android/android_history_provider_service.cc:31: : request_cb_(request_cb), result_cb_(result_cb), result_(ResultType{}) { ...
5 years, 10 months ago (2015-02-18 14:04:01 UTC) #3
sdefresne
PTAL
5 years, 10 months ago (2015-02-18 14:48:11 UTC) #4
droger
lgtm
5 years, 10 months ago (2015-02-18 14:56:51 UTC) #5
sdefresne
zea: I need OWNERS approval for chrome/browser/sync/profile_sync_service_typed_url_unittest.cc
5 years, 10 months ago (2015-02-18 15:19:27 UTC) #8
sdefresne
atwilson@chromium.org: could you review chrome/browser/sync as an OWNERS?
5 years, 10 months ago (2015-02-20 10:28:30 UTC) #10
Andrew T Wilson (Slow)
LGTM with one question/comment. https://codereview.chromium.org/930363002/diff/40001/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc File chrome/browser/sync/profile_sync_service_typed_url_unittest.cc (right): https://codereview.chromium.org/930363002/diff/40001/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc#newcode129 chrome/browser/sync/profile_sync_service_typed_url_unittest.cc:129: return base::CancelableTaskTracker::kBadTaskId; I don't understand ...
5 years, 10 months ago (2015-02-20 10:45:03 UTC) #11
sdefresne
https://codereview.chromium.org/930363002/diff/40001/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc File chrome/browser/sync/profile_sync_service_typed_url_unittest.cc (right): https://codereview.chromium.org/930363002/diff/40001/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc#newcode129 chrome/browser/sync/profile_sync_service_typed_url_unittest.cc:129: return base::CancelableTaskTracker::kBadTaskId; On 2015/02/20 at 10:45:03, Andrew T Wilson ...
5 years, 10 months ago (2015-02-20 10:48:14 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/930363002/60001
5 years, 10 months ago (2015-02-20 16:14:23 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-02-20 16:18:06 UTC) #16
commit-bot: I haz the power
5 years, 10 months ago (2015-02-20 16:18:48 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3983849f247fcc47e0c05430b81d6481453c804e
Cr-Commit-Position: refs/heads/master@{#317331}

Powered by Google App Engine
This is Rietveld 408576698