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

Issue 631253002: Refactor sending NOTIFICATION_HISTORY_URL_VISITED (Closed)

Created:
6 years, 2 months ago by sdefresne
Modified:
6 years, 2 months ago
CC:
chromium-reviews, browser-components-watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Refactor sending NOTIFICATION_HISTORY_URL_VISITED Refactor //chrome/browser/history code sending the notification NOTIFICATION_HISTORY_URL_VISITED so that the notification is not send from the core of the component. Introduce HistoryServiceObserver to follow the observer pattern instead of notification and use this pattern in the core history code. Introduce HistoryBackendObserver to follow the observer pattern instead of notification in the history thread. ChromeHistoryClient forward the HistoryServiceObserver events to the notification system so that porting the clients can be on a case by case basis and does not block the componentization work. BUG=373326 Committed: https://crrev.com/c8eb77ed61f9c44efac034bd6bd3a0a6ba553cfb Cr-Commit-Position: refs/heads/master@{#299719}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments #

Patch Set 3 : Fix compilation on android #

Patch Set 4 : Fix unit_tests #

Patch Set 5 : Fix sync_integration_tests #

Patch Set 6 : Rebase #

Patch Set 7 : Fix ProfileSyncServiceTypedUrlTest unit tests #

Patch Set 8 : Fix compilation with MSVC #

Patch Set 9 : Fix tests on Android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+438 lines, -115 lines) Patch
M chrome/browser/history/android/android_provider_backend_unittest.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/history/chrome_history_client.h View 1 2 3 4 5 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/history/chrome_history_client.cc View 1 2 3 4 5 6 7 8 4 chunks +33 lines, -0 lines 0 comments Download
M chrome/browser/history/chrome_history_client_factory.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/history/chrome_history_client_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 4 5 6 6 chunks +28 lines, -1 line 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 6 4 chunks +30 lines, -7 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 2 3 4 13 chunks +57 lines, -8 lines 0 comments Download
M chrome/browser/history/history_service.h View 1 2 3 4 1 chunk +12 lines, -1 line 0 comments Download
M chrome/browser/history/history_service.cc View 1 2 3 4 5 4 chunks +25 lines, -2 lines 0 comments Download
M chrome/browser/history/history_service_factory.cc View 1 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/history/in_memory_history_backend.h View 1 2 3 4 5 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/history/in_memory_history_backend.cc View 1 2 3 4 4 chunks +21 lines, -7 lines 0 comments Download
M chrome/browser/history/in_memory_url_index.h View 1 2 3 4 5 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/history/in_memory_url_index.cc View 1 2 3 4 5 chunks +15 lines, -10 lines 0 comments Download
M chrome/browser/history/in_memory_url_index_unittest.cc View 1 2 3 4 3 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_change_processor.h View 1 2 3 4 4 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_change_processor.cc View 1 2 3 4 7 chunks +30 lines, -26 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 2 3 4 5 6 7 7 chunks +26 lines, -35 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -2 lines 0 comments Download
M components/history.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/history/core/browser/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A components/history/core/browser/history_backend_observer.h View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
M components/history/core/browser/history_service_observer.h View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M components/search_engines/template_url_service_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
sdefresne
blundell: can you take a look? brettw: I think this is just simple refactoring and ...
6 years, 2 months ago (2014-10-07 14:36:47 UTC) #2
brettw
I only looked at a few things but this seems reasonable. https://codereview.chromium.org/631253002/diff/1/chrome/browser/history/history_backend.h File chrome/browser/history/history_backend.h (right): ...
6 years, 2 months ago (2014-10-07 16:47:39 UTC) #3
blundell
LGTM with questions/nits https://codereview.chromium.org/631253002/diff/1/chrome/browser/history/chrome_history_client.cc File chrome/browser/history/chrome_history_client.cc (right): https://codereview.chromium.org/631253002/diff/1/chrome/browser/history/chrome_history_client.cc#newcode98 chrome/browser/history/chrome_history_client.cc:98: scoped_ptr<history::URLVisitedDetails> details( This should have a ...
6 years, 2 months ago (2014-10-08 09:59:14 UTC) #4
sdefresne
https://codereview.chromium.org/631253002/diff/1/chrome/browser/history/chrome_history_client.cc File chrome/browser/history/chrome_history_client.cc (right): https://codereview.chromium.org/631253002/diff/1/chrome/browser/history/chrome_history_client.cc#newcode98 chrome/browser/history/chrome_history_client.cc:98: scoped_ptr<history::URLVisitedDetails> details( On 2014/10/08 09:59:13, blundell wrote: > This ...
6 years, 2 months ago (2014-10-09 09:38:16 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/631253002/20001
6 years, 2 months ago (2014-10-09 09:40:43 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/16835)
6 years, 2 months ago (2014-10-09 10:11:28 UTC) #9
sdefresne
phajdan.jr@chromium.org: Please review changes in //chrome/test/base zea@chromium.org: Please review changes in //chrome/browser/sync Note I had ...
6 years, 2 months ago (2014-10-13 17:31:33 UTC) #11
sdefresne
On 2014/10/13 17:31:33, sdefresne wrote: > mailto:phajdan.jr@chromium.org: Please review changes in //chrome/test/base > > mailto:zea@chromium.org: ...
6 years, 2 months ago (2014-10-13 17:32:32 UTC) #12
Paweł Hajdan Jr.
chrome/test/base LGTM
6 years, 2 months ago (2014-10-14 15:15:20 UTC) #13
Nicolas Zea
sync LGTM
6 years, 2 months ago (2014-10-14 17:46:28 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/631253002/580001
6 years, 2 months ago (2014-10-15 17:27:40 UTC) #16
commit-bot: I haz the power
Committed patchset #9 (id:580001)
6 years, 2 months ago (2014-10-15 18:15:53 UTC) #17
commit-bot: I haz the power
6 years, 2 months ago (2014-10-15 18:16:51 UTC) #18
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/c8eb77ed61f9c44efac034bd6bd3a0a6ba553cfb
Cr-Commit-Position: refs/heads/master@{#299719}

Powered by Google App Engine
This is Rietveld 408576698