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

Issue 651193002: Remove NOTIFICATION_HISTORY_URL_VISITED (Closed)

Created:
6 years, 2 months ago by sdefresne
Modified:
6 years, 2 months ago
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, zea+watch_chromium.org, browser-components-watch_chromium.org, pvalenzuela+watch_chromium.org, chromium-apps-reviews_chromium.org, James Su, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@373326.2
Project:
chromium
Visibility:
Public.

Description

Remove NOTIFICATION_HISTORY_URL_VISITED Port all client of the NOTIFICATION_HISTORY_URL_VISITED to instead be HistoryServiceObserver or HistoryBackendObserver depending on the thread they want the notification to be delivered. Delete the notification and the notification details types. BUG=373326 TBR=sky@chromium.org Committed: https://crrev.com/bb1e5752f4c39a37892097460afce447226c457c Cr-Commit-Position: refs/heads/master@{#300253}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Address comments #

Total comments: 15

Patch Set 3 : Address comments #

Total comments: 4

Patch Set 4 : Rebase, address comments, fix tests and compilation #

Total comments: 7

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -236 lines) Patch
M athena/extensions/shell/url_search_provider.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/provider/chrome_browser_provider.h View 1 2 3 5 chunks +21 lines, -1 line 0 comments Download
M chrome/browser/android/provider/chrome_browser_provider.cc View 1 2 3 4 chunks +22 lines, -9 lines 0 comments Download
M chrome/browser/autocomplete/history_quick_provider_unittest.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/history_url_provider_unittest.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chrome_notification_types.h View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/history/history_api.h View 1 2 3 4 chunks +14 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/history/history_api.cc View 1 2 3 2 chunks +25 lines, -31 lines 0 comments Download
M chrome/browser/history/chrome_history_client.h View 1 2 3 2 chunks +1 line, -8 lines 0 comments Download
M chrome/browser/history/chrome_history_client.cc View 1 2 3 1 chunk +0 lines, -21 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 2 3 8 chunks +36 lines, -37 lines 0 comments Download
M chrome/browser/history/history_notifications.h View 1 chunk +0 lines, -20 lines 0 comments Download
M chrome/browser/history/history_notifications.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/history/in_memory_url_index.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/history/in_memory_url_index.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search_engines/chrome_template_url_service_client.h View 1 2 3 2 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/search_engines/chrome_template_url_service_client.cc View 1 2 3 4 3 chunks +35 lines, -40 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_factory.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_test_util.cc View 1 2 3 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_change_processor.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 2 3 6 chunks +19 lines, -14 lines 0 comments Download
M chrome/browser/ui/cocoa/history_menu_bridge.h View 1 2 3 4 4 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/history_menu_bridge.mm View 1 2 3 4 5 chunks +19 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/frame/test_with_browser_view.cc View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M components/search_engines/template_url_service.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M components/search_engines/template_url_service_client.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M components/search_engines/template_url_service_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 34 (15 generated)
sdefresne
This is a followup to https://codereview.chromium.org/631253002/ that refactor client code to use the observer interface ...
6 years, 2 months ago (2014-10-14 15:15:03 UTC) #4
droger
https://codereview.chromium.org/651193002/diff/1/chrome/browser/android/provider/chrome_browser_provider.cc File chrome/browser/android/provider/chrome_browser_provider.cc (right): https://codereview.chromium.org/651193002/diff/1/chrome/browser/android/provider/chrome_browser_provider.cc#newcode1625 chrome/browser/android/provider/chrome_browser_provider.cc:1625: JNIEnv* env = AttachCurrentThread(); Is it possible to share ...
6 years, 2 months ago (2014-10-14 15:15:24 UTC) #5
Andrew T Wilson (Slow)
sync lgtm
6 years, 2 months ago (2014-10-14 15:20:04 UTC) #6
sdefresne
https://codereview.chromium.org/651193002/diff/1/chrome/browser/android/provider/chrome_browser_provider.cc File chrome/browser/android/provider/chrome_browser_provider.cc (right): https://codereview.chromium.org/651193002/diff/1/chrome/browser/android/provider/chrome_browser_provider.cc#newcode1625 chrome/browser/android/provider/chrome_browser_provider.cc:1625: JNIEnv* env = AttachCurrentThread(); On 2014/10/14 15:15:24, droger wrote: ...
6 years, 2 months ago (2014-10-14 16:02:05 UTC) #7
not at google - send to devlin
lgtm https://codereview.chromium.org/651193002/diff/20001/chrome/browser/extensions/api/history/history_api.cc File chrome/browser/extensions/api/history/history_api.cc (right): https://codereview.chromium.org/651193002/diff/20001/chrome/browser/extensions/api/history/history_api.cc#newcode140 chrome/browser/extensions/api/history/history_api.cc:140: const content::Source<Profile> source = content::Source<Profile>(profile); Remove this alias ...
6 years, 2 months ago (2014-10-14 16:06:41 UTC) #8
droger
lgtm https://codereview.chromium.org/651193002/diff/1/chrome/browser/search_engines/chrome_template_url_service_client.h File chrome/browser/search_engines/chrome_template_url_service_client.h (right): https://codereview.chromium.org/651193002/diff/1/chrome/browser/search_engines/chrome_template_url_service_client.h#newcode40 chrome/browser/search_engines/chrome_template_url_service_client.h:40: base::Time visit_time) override; On 2014/10/14 16:02:05, sdefresne wrote: ...
6 years, 2 months ago (2014-10-14 16:11:09 UTC) #9
Peter Kasting
LGTM with question https://codereview.chromium.org/651193002/diff/20001/chrome/browser/search_engines/chrome_template_url_service_client.cc File chrome/browser/search_engines/chrome_template_url_service_client.cc (right): https://codereview.chromium.org/651193002/diff/20001/chrome/browser/search_engines/chrome_template_url_service_client.cc#newcode14 chrome/browser/search_engines/chrome_template_url_service_client.cc:14: // Register as HistoryServiceObserver. Nit: This ...
6 years, 2 months ago (2014-10-14 16:40:54 UTC) #10
sdefresne
https://codereview.chromium.org/651193002/diff/20001/chrome/browser/search_engines/chrome_template_url_service_client.cc File chrome/browser/search_engines/chrome_template_url_service_client.cc (right): https://codereview.chromium.org/651193002/diff/20001/chrome/browser/search_engines/chrome_template_url_service_client.cc#newcode14 chrome/browser/search_engines/chrome_template_url_service_client.cc:14: // Register as HistoryServiceObserver. On 2014/10/14 16:40:53, Peter Kasting ...
6 years, 2 months ago (2014-10-14 16:49:42 UTC) #11
Peter Kasting
https://codereview.chromium.org/651193002/diff/20001/chrome/browser/search_engines/chrome_template_url_service_client.cc File chrome/browser/search_engines/chrome_template_url_service_client.cc (right): https://codereview.chromium.org/651193002/diff/20001/chrome/browser/search_engines/chrome_template_url_service_client.cc#newcode25 chrome/browser/search_engines/chrome_template_url_service_client.cc:25: history_service_->RemoveObserver(this); On 2014/10/14 16:49:42, sdefresne wrote: > On 2014/10/14 ...
6 years, 2 months ago (2014-10-14 16:50:40 UTC) #12
brettw
lgtm https://codereview.chromium.org/651193002/diff/40001/chrome/browser/android/provider/chrome_browser_provider.h File chrome/browser/android/provider/chrome_browser_provider.h (right): https://codereview.chromium.org/651193002/diff/40001/chrome/browser/android/provider/chrome_browser_provider.h#newcode200 chrome/browser/android/provider/chrome_browser_provider.h:200: Profile* profile_; Can you add a note above ...
6 years, 2 months ago (2014-10-14 18:16:57 UTC) #13
Bernhard Bauer
android LGTM https://codereview.chromium.org/651193002/diff/40001/chrome/browser/android/provider/chrome_browser_provider.cc File chrome/browser/android/provider/chrome_browser_provider.cc (right): https://codereview.chromium.org/651193002/diff/40001/chrome/browser/android/provider/chrome_browser_provider.cc#newcode1184 chrome/browser/android/provider/chrome_browser_provider.cc:1184: history_service_->RemoveObserver(this); Maybe you could use a ScopedObserver ...
6 years, 2 months ago (2014-10-15 12:24:52 UTC) #14
sdefresne
pkasting: could you take another look as the issue you pointed about lifetime was correct ...
6 years, 2 months ago (2014-10-17 14:32:39 UTC) #26
Peter Kasting
https://codereview.chromium.org/651193002/diff/240001/chrome/browser/search_engines/chrome_template_url_service_client.cc File chrome/browser/search_engines/chrome_template_url_service_client.cc (right): https://codereview.chromium.org/651193002/diff/240001/chrome/browser/search_engines/chrome_template_url_service_client.cc#newcode27 chrome/browser/search_engines/chrome_template_url_service_client.cc:27: // KeyedService with a dependency on HistoryService. Since it ...
6 years, 2 months ago (2014-10-17 20:41:03 UTC) #27
sdefresne
https://codereview.chromium.org/651193002/diff/240001/chrome/browser/search_engines/chrome_template_url_service_client.cc File chrome/browser/search_engines/chrome_template_url_service_client.cc (right): https://codereview.chromium.org/651193002/diff/240001/chrome/browser/search_engines/chrome_template_url_service_client.cc#newcode27 chrome/browser/search_engines/chrome_template_url_service_client.cc:27: // KeyedService with a dependency on HistoryService. Since it ...
6 years, 2 months ago (2014-10-18 17:31:47 UTC) #28
sdefresne
I've clarified the comment for ChromeTemplateURLClient but didn't make any code change. Thank you all ...
6 years, 2 months ago (2014-10-20 12:03:32 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/651193002/260001
6 years, 2 months ago (2014-10-20 12:03:50 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:260001)
6 years, 2 months ago (2014-10-20 12:31:25 UTC) #32
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/bb1e5752f4c39a37892097460afce447226c457c Cr-Commit-Position: refs/heads/master@{#300253}
6 years, 2 months ago (2014-10-20 12:32:12 UTC) #33
sky
6 years, 2 months ago (2014-10-20 19:54:36 UTC) #34
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698