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

Issue 808123003: Eliminate sending NOTIFICATION_HISTORY_KEYWORD_SEARCH_TERM_UPDATED (Closed)

Created:
6 years ago by Abhishek
Modified:
5 years, 11 months ago
CC:
browser-components-watch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Eliminate sending NOTIFICATION_HISTORY_KEYWORD_SEARCH_TERM_UPDATED Added HistoryKeywordSearchTermUpdated inside HistoryBackendObserver and HistoryServiceObserver. Will be removed notification and its detail from chrome_notification_types. BUG=373321 Committed: https://crrev.com/895a5b1f31ca56353f8a2ec1fcb323cc5d8dfdae Cr-Commit-Position: refs/heads/master@{#311027}

Patch Set 1 #

Patch Set 2 : Updated patch for android port #

Total comments: 19

Patch Set 3 : added comments and style fixes #

Patch Set 4 : removed fwd declaration of KeywordSearchUpdatedDetails #

Total comments: 8

Patch Set 5 : resolved all nits #

Total comments: 2

Patch Set 6 : Inline code for same function name. #

Total comments: 6

Patch Set 7 : inline code for provider class #

Total comments: 7

Patch Set 8 : updated as per comments #

Patch Set 9 : updated comment #

Total comments: 4

Patch Set 10 : removed un-used include #

Total comments: 2

Patch Set 11 : updated comment #

Patch Set 12 : Added unittest files #

Patch Set 13 : update unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -70 lines) Patch
M chrome/browser/android/provider/chrome_browser_provider.h View 1 2 3 4 5 6 1 chunk +9 lines, -5 lines 0 comments Download
M chrome/browser/android/provider/chrome_browser_provider.cc View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -13 lines 0 comments Download
M chrome/browser/chrome_notification_types.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/history/android/android_provider_backend_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/history/history_notifications.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -15 lines 0 comments Download
M chrome/browser/history/history_notifications.cc View 1 2 1 chunk +0 lines, -11 lines 0 comments Download
M chrome/browser/history/history_service.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/history/history_service.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/history/in_memory_history_backend.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/history/in_memory_history_backend.cc View 1 2 3 4 5 3 chunks +10 lines, -14 lines 0 comments Download
M components/history/core/browser/history_service_observer.h View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (7 generated)
Abhishek
PTAL!
6 years ago (2014-12-24 07:06:23 UTC) #2
sdefresne
+naiem.shaik: FYI so that you don't duplicate effort
6 years ago (2014-12-24 08:52:43 UTC) #3
sdefresne
Thank you. Some comments, but already looking pretty good. https://codereview.chromium.org/808123003/diff/20001/chrome/browser/android/provider/chrome_browser_provider.cc File chrome/browser/android/provider/chrome_browser_provider.cc (right): https://codereview.chromium.org/808123003/diff/20001/chrome/browser/android/provider/chrome_browser_provider.cc#newcode1646 chrome/browser/android/provider/chrome_browser_provider.cc:1646: ...
5 years, 12 months ago (2014-12-24 09:03:43 UTC) #4
Abhishek
All comments are incorporated in patch set #4. PTAL! https://codereview.chromium.org/808123003/diff/20001/chrome/browser/android/provider/chrome_browser_provider.cc File chrome/browser/android/provider/chrome_browser_provider.cc (right): https://codereview.chromium.org/808123003/diff/20001/chrome/browser/android/provider/chrome_browser_provider.cc#newcode1646 chrome/browser/android/provider/chrome_browser_provider.cc:1646: ...
5 years, 12 months ago (2014-12-24 19:39:41 UTC) #5
sdefresne
lgtm with nits https://codereview.chromium.org/808123003/diff/60001/chrome/browser/history/history_backend.h File chrome/browser/history/history_backend.h (right): https://codereview.chromium.org/808123003/diff/60001/chrome/browser/history/history_backend.h#newcode149 chrome/browser/history/history_backend.h:149: virtual void NotifyHistoryKeywordSearchTermUpdated( nit: rename to ...
5 years, 11 months ago (2014-12-29 09:53:26 UTC) #6
sdefresne
https://codereview.chromium.org/808123003/diff/80001/chrome/browser/history/in_memory_history_backend.cc File chrome/browser/history/in_memory_history_backend.cc (right): https://codereview.chromium.org/808123003/diff/80001/chrome/browser/history/in_memory_history_backend.cc#newcode146 chrome/browser/history/in_memory_history_backend.cc:146: void InMemoryHistoryBackend::OnKeywordSearchTermUpdated( I'd suggest removing this method and inlining ...
5 years, 11 months ago (2014-12-29 13:29:29 UTC) #7
Abhishek
Updated all the comments in patch set #6. @newt: PTAL! https://codereview.chromium.org/808123003/diff/60001/chrome/browser/history/history_backend.h File chrome/browser/history/history_backend.h (right): https://codereview.chromium.org/808123003/diff/60001/chrome/browser/history/history_backend.h#newcode149 ...
5 years, 11 months ago (2014-12-29 14:12:40 UTC) #9
sdefresne
still lgtm +sky for OWNERS of chrome/browser/chrome_notification_types.h
5 years, 11 months ago (2014-12-29 14:20:50 UTC) #11
newt (away)
https://codereview.chromium.org/808123003/diff/100001/chrome/browser/android/provider/chrome_browser_provider.cc File chrome/browser/android/provider/chrome_browser_provider.cc (right): https://codereview.chromium.org/808123003/diff/100001/chrome/browser/android/provider/chrome_browser_provider.cc#newcode1626 chrome/browser/android/provider/chrome_browser_provider.cc:1626: void ChromeBrowserProvider::OnSearchTermUpdated() { I'd inline this method into OnKeywordSearchTermUpdated() ...
5 years, 11 months ago (2014-12-30 16:00:56 UTC) #12
Abhishek
All comments are incorporated in #7. PTAL! https://codereview.chromium.org/808123003/diff/100001/chrome/browser/android/provider/chrome_browser_provider.cc File chrome/browser/android/provider/chrome_browser_provider.cc (right): https://codereview.chromium.org/808123003/diff/100001/chrome/browser/android/provider/chrome_browser_provider.cc#newcode1626 chrome/browser/android/provider/chrome_browser_provider.cc:1626: void ChromeBrowserProvider::OnSearchTermUpdated() ...
5 years, 11 months ago (2014-12-30 16:20:53 UTC) #13
newt (away)
chrome/browser/android lgtm
5 years, 11 months ago (2014-12-30 16:24:09 UTC) #14
nshaik
https://codereview.chromium.org/808123003/diff/60001/chrome/browser/history/history_backend.h File chrome/browser/history/history_backend.h (right): https://codereview.chromium.org/808123003/diff/60001/chrome/browser/history/history_backend.h#newcode146 chrome/browser/history/history_backend.h:146: // Notify HistoryService that some keyword has be searched ...
5 years, 11 months ago (2014-12-30 18:56:35 UTC) #16
Abhishek
@nshaik Nice catch ! All comments are incorporated in #9. PTAL ! https://codereview.chromium.org/808123003/diff/120001/chrome/browser/history/history_backend.h File chrome/browser/history/history_backend.h ...
5 years, 11 months ago (2014-12-31 05:57:22 UTC) #17
nshaik
On 2014/12/31 05:57:22, Abhishek wrote: > @nshaik > Nice catch ! > All comments are ...
5 years, 11 months ago (2015-01-05 17:31:38 UTC) #18
sky
LGTM https://codereview.chromium.org/808123003/diff/160001/chrome/browser/history/history_notifications.h File chrome/browser/history/history_notifications.h (right): https://codereview.chromium.org/808123003/diff/160001/chrome/browser/history/history_notifications.h#newcode14 chrome/browser/history/history_notifications.h:14: #include "components/history/core/browser/keyword_id.h" I think you can remove this ...
5 years, 11 months ago (2015-01-05 18:40:07 UTC) #19
Abhishek
All comments are incorporated in #10. PTAL! https://codereview.chromium.org/808123003/diff/160001/chrome/browser/history/history_notifications.h File chrome/browser/history/history_notifications.h (right): https://codereview.chromium.org/808123003/diff/160001/chrome/browser/history/history_notifications.h#newcode14 chrome/browser/history/history_notifications.h:14: #include "components/history/core/browser/keyword_id.h" ...
5 years, 11 months ago (2015-01-05 19:00:43 UTC) #20
sky
SLGTM https://codereview.chromium.org/808123003/diff/180001/chrome/browser/history/history_service.h File chrome/browser/history/history_service.h (right): https://codereview.chromium.org/808123003/diff/180001/chrome/browser/history/history_service.h#newcode619 chrome/browser/history/history_service.h:619: // searched using omnibox. |row| contains the URL ...
5 years, 11 months ago (2015-01-05 19:03:31 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/808123003/200001
5 years, 11 months ago (2015-01-05 19:08:37 UTC) #23
Abhishek
Updated comment. Thanks ! https://codereview.chromium.org/808123003/diff/180001/chrome/browser/history/history_service.h File chrome/browser/history/history_service.h (right): https://codereview.chromium.org/808123003/diff/180001/chrome/browser/history/history_service.h#newcode619 chrome/browser/history/history_service.h:619: // searched using omnibox. |row| ...
5 years, 11 months ago (2015-01-05 19:08:40 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/34650) android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/41932) linux_chromium_chromeos_compile_dbg_ng ...
5 years, 11 months ago (2015-01-05 19:31:43 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/808123003/240001
5 years, 11 months ago (2015-01-12 08:28:04 UTC) #28
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 11 months ago (2015-01-12 09:24:56 UTC) #29
commit-bot: I haz the power
5 years, 11 months ago (2015-01-12 09:25:58 UTC) #30
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/895a5b1f31ca56353f8a2ec1fcb323cc5d8dfdae
Cr-Commit-Position: refs/heads/master@{#311027}

Powered by Google App Engine
This is Rietveld 408576698