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 #Messages
Total messages: 29 (5 generated)
|