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

Issue 687803004: [Hotword] Implement audio history pref accessing and setting. (Closed)

Created:
6 years, 1 month ago by rpetterson
Modified:
6 years, 1 month ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, browser-components-watch_chromium.org, jfweitz+watch_chromium.org, rlp+watch_chromium.org, arv+watch_chromium.org, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, David Black, Jered
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Hotword] Implement audio history pref accessing and setting. This CL adds new functionality to the web history service to access audio history as well since accessing audio history uses the same underlying mechanism as standard web history. This CL also removes the onChange observer for the pref so that it is entirely handled by the handler. There is no longer a need for it since the only access to the pref is through this handler (i.e., there is no more settings checkbox). Note: The completion callbacks in the hotword_audio_history_handler will probably be updated once some additional extension apis have been added. We may eventually shift to a newer technology but it is appearing more likely it might not be ready when we need it. However, we will continue to use this method for the accessing of the audio history pref for quite some time (it's one of the approved methods) even once the setting of the pref switches to the newer model. BUG=426640 Committed: https://crrev.com/997840adca15d4f278b2b8ad955aeb8bec663b5e Cr-Commit-Position: refs/heads/master@{#304994}

Patch Set 1 #

Patch Set 2 : moving some files to another CL #

Patch Set 3 : some cleanup #

Patch Set 4 : removing set #

Patch Set 5 : adding set functions back #

Patch Set 6 : minor cleanup #

Total comments: 8

Patch Set 7 : delete request #

Patch Set 8 : combine callbacks #

Patch Set 9 : adding unittests #

Total comments: 1

Patch Set 10 : remove unused variable #

Patch Set 11 : fix more compile errors #

Patch Set 12 : fix var init order for real #

Patch Set 13 : undo last patch; I had it right before. #

Patch Set 14 : more compile errors on other platforms #

Total comments: 13

Patch Set 15 : responding to comments #

Patch Set 16 : fix function names, update scoped_ptr #

Patch Set 17 : fixing memory leak with scoped ptrs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+632 lines, -56 lines) Patch
M chrome/browser/extensions/component_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/history/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/history/web_history_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +53 lines, -2 lines 0 comments Download
M chrome/browser/history/web_history_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 12 chunks +100 lines, -33 lines 0 comments Download
A chrome/browser/history/web_history_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +429 lines, -0 lines 0 comments Download
M chrome/browser/search/hotword_audio_history_handler.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/search/hotword_audio_history_handler.cc View 1 2 3 4 5 6 7 8 9 2 chunks +30 lines, -15 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 29 (5 generated)
rpetterson
sky - web history anand - hotword
6 years, 1 month ago (2014-11-04 21:31:50 UTC) #2
rpetterson
Reviewers, Please hold off reviewing this for now. We may be using the newer stuff ...
6 years, 1 month ago (2014-11-05 00:49:22 UTC) #3
rpetterson
Hi, Reviewers, Thank you for your patience. It looks like we will need this. I've ...
6 years, 1 month ago (2014-11-11 20:07:37 UTC) #4
sky
How about test coverage? https://codereview.chromium.org/687803004/diff/100001/chrome/browser/history/web_history_service.cc File chrome/browser/history/web_history_service.cc (right): https://codereview.chromium.org/687803004/diff/100001/chrome/browser/history/web_history_service.cc#newcode471 chrome/browser/history/web_history_service.cc:471: pending_audio_history_requests_.erase(request); Does this leak request?
6 years, 1 month ago (2014-11-11 20:30:10 UTC) #5
rpetterson
Re: test coverage, I couldn't find any tests for web history. Can you point me ...
6 years, 1 month ago (2014-11-11 22:29:16 UTC) #6
Anand Mistry (off Chromium)
https://codereview.chromium.org/687803004/diff/100001/chrome/browser/search/hotword_audio_history_handler.cc File chrome/browser/search/hotword_audio_history_handler.cc (right): https://codereview.chromium.org/687803004/diff/100001/chrome/browser/search/hotword_audio_history_handler.cc#newcode45 chrome/browser/search/hotword_audio_history_handler.cc:45: web_history->SetAudioHistoryEnabled( How is the local PrefService setting supposed to ...
6 years, 1 month ago (2014-11-12 00:00:11 UTC) #7
rpetterson
https://codereview.chromium.org/687803004/diff/100001/chrome/browser/search/hotword_audio_history_handler.cc File chrome/browser/search/hotword_audio_history_handler.cc (right): https://codereview.chromium.org/687803004/diff/100001/chrome/browser/search/hotword_audio_history_handler.cc#newcode45 chrome/browser/search/hotword_audio_history_handler.cc:45: web_history->SetAudioHistoryEnabled( On 2014/11/12 00:00:10, Anand Mistry wrote: > How ...
6 years, 1 month ago (2014-11-12 00:36:04 UTC) #8
sky
No idea on the testing. There should be tests for this code. Maybe you get ...
6 years, 1 month ago (2014-11-12 00:46:32 UTC) #9
Anand Mistry (off Chromium)
https://codereview.chromium.org/687803004/diff/100001/chrome/browser/search/hotword_audio_history_handler.cc File chrome/browser/search/hotword_audio_history_handler.cc (right): https://codereview.chromium.org/687803004/diff/100001/chrome/browser/search/hotword_audio_history_handler.cc#newcode45 chrome/browser/search/hotword_audio_history_handler.cc:45: web_history->SetAudioHistoryEnabled( On 2014/11/12 00:36:04, rpetterson wrote: > On 2014/11/12 ...
6 years, 1 month ago (2014-11-12 00:56:55 UTC) #10
rpetterson
https://codereview.chromium.org/687803004/diff/100001/chrome/browser/history/web_history_service.cc File chrome/browser/history/web_history_service.cc (right): https://codereview.chromium.org/687803004/diff/100001/chrome/browser/history/web_history_service.cc#newcode471 chrome/browser/history/web_history_service.cc:471: pending_audio_history_requests_.erase(request); On 2014/11/12 00:46:32, sky wrote: > On 2014/11/11 ...
6 years, 1 month ago (2014-11-12 00:58:42 UTC) #11
rpetterson
On 2014/11/12 00:46:32, sky wrote: > No idea on the testing. There should be tests ...
6 years, 1 month ago (2014-11-12 01:04:24 UTC) #12
rpetterson
https://codereview.chromium.org/687803004/diff/100001/chrome/browser/search/hotword_audio_history_handler.cc File chrome/browser/search/hotword_audio_history_handler.cc (right): https://codereview.chromium.org/687803004/diff/100001/chrome/browser/search/hotword_audio_history_handler.cc#newcode45 chrome/browser/search/hotword_audio_history_handler.cc:45: web_history->SetAudioHistoryEnabled( On 2014/11/12 00:56:55, Anand Mistry wrote: > On ...
6 years, 1 month ago (2014-11-12 01:15:42 UTC) #13
Anand Mistry (off Chromium)
lgtm
6 years, 1 month ago (2014-11-12 01:29:15 UTC) #14
rpetterson
sky@ -- web_history_service_unittest.cc added. PTAL. Thanks! https://codereview.chromium.org/687803004/diff/160001/chrome/browser/history/DEPS File chrome/browser/history/DEPS (right): https://codereview.chromium.org/687803004/diff/160001/chrome/browser/history/DEPS#newcode44 chrome/browser/history/DEPS:44: "!chrome/browser/sync/profile_sync_service_mock.h", I check ...
6 years, 1 month ago (2014-11-18 22:58:30 UTC) #15
sky
https://codereview.chromium.org/687803004/diff/250001/chrome/browser/history/web_history_service.cc File chrome/browser/history/web_history_service.cc (right): https://codereview.chromium.org/687803004/diff/250001/chrome/browser/history/web_history_service.cc#newcode462 chrome/browser/history/web_history_service.cc:462: scoped_ptr<base::DictionaryValue> response_value; nit: use a scoped_ptr for request early ...
6 years, 1 month ago (2014-11-19 01:02:41 UTC) #16
rpetterson
https://codereview.chromium.org/687803004/diff/250001/chrome/browser/history/web_history_service.cc File chrome/browser/history/web_history_service.cc (right): https://codereview.chromium.org/687803004/diff/250001/chrome/browser/history/web_history_service.cc#newcode462 chrome/browser/history/web_history_service.cc:462: scoped_ptr<base::DictionaryValue> response_value; On 2014/11/19 01:02:41, sky wrote: > nit: ...
6 years, 1 month ago (2014-11-19 02:04:56 UTC) #17
sky
LGTM https://codereview.chromium.org/687803004/diff/250001/chrome/browser/history/web_history_service.cc File chrome/browser/history/web_history_service.cc (right): https://codereview.chromium.org/687803004/diff/250001/chrome/browser/history/web_history_service.cc#newcode462 chrome/browser/history/web_history_service.cc:462: scoped_ptr<base::DictionaryValue> response_value; On 2014/11/19 02:04:55, rpetterson wrote: > ...
6 years, 1 month ago (2014-11-19 16:02:44 UTC) #18
rpetterson
+benwells for component_loader_unittest.cc Reasoning: 2 of the component loader unittests load component extensions (and namely ...
6 years, 1 month ago (2014-11-19 19:48:25 UTC) #20
benwells
lgtm
6 years, 1 month ago (2014-11-20 02:18:14 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/687803004/290001
6 years, 1 month ago (2014-11-20 02:21:41 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel/builds/11549)
6 years, 1 month ago (2014-11-20 03:57:46 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/687803004/310001
6 years, 1 month ago (2014-11-20 07:39:25 UTC) #27
commit-bot: I haz the power
Committed patchset #17 (id:310001)
6 years, 1 month ago (2014-11-20 08:45:11 UTC) #28
commit-bot: I haz the power
6 years, 1 month ago (2014-11-20 08:45:51 UTC) #29
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/997840adca15d4f278b2b8ad955aeb8bec663b5e
Cr-Commit-Position: refs/heads/master@{#304994}

Powered by Google App Engine
This is Rietveld 408576698