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

Issue 102263005: Automatically trigger installation of high-quality speech synthesis extension. (Closed)

Created:
7 years ago by dmazzoni
Modified:
7 years ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Automatically trigger installation of high-quality speech synthesis extension. When a certain threshold number of utterances are spoken in a given session with the built-in speech synthesis, set a preference that enables automatic download and (silent) installation of a component extension that provides higher-quality speech synthesis. This change also gets rid of the code that loaded the built-in speech synthesis component extension on-demand and instead installs it when loading all component extensions. It now uses an event page, so the cost of loading it is minimal. BUG=314718 R=asargent@chromium.org, dpolukhin@chromium.org, thestig@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241081

Patch Set 1 #

Patch Set 2 : Add missing files #

Patch Set 3 : Add unit tests #

Patch Set 4 : Rebase #

Total comments: 9

Patch Set 5 : Initialize lang to extension id mapping from data #

Total comments: 1

Patch Set 6 : Make speech synthesis an event page #

Patch Set 7 : Change extension manifest to match Chrome OS #

Total comments: 3

Patch Set 8 : Move to ExternalComponentLoader #

Patch Set 9 : Rebase, add missing file #

Patch Set 10 : Add chrome os #if #

Patch Set 11 : Clang fix #

Patch Set 12 : Fix debug assertion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+386 lines, -250 lines) Patch
chrome/browser/chromeos/login/user_manager_impl.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
chrome/browser/extensions/component_loader.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
chrome/browser/extensions/component_loader.cc View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -0 lines 0 comments Download
chrome/browser/extensions/external_component_loader.h View 1 2 3 4 5 6 7 8 3 chunks +26 lines, -2 lines 0 comments Download
chrome/browser/extensions/external_component_loader.cc View 1 2 3 4 5 6 7 2 chunks +78 lines, -1 line 0 comments Download
chrome/browser/extensions/external_component_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +166 lines, -0 lines 0 comments Download
chrome/browser/extensions/external_provider_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
chrome/browser/resources/chromeos/speech_synthesis/manifest.json View 1 2 3 4 5 6 3 chunks +7 lines, -6 lines 0 comments Download
chrome/browser/speech/tts_chromeos.cc View 3 chunks +60 lines, -20 lines 0 comments Download
chrome/browser/speech/tts_controller.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -5 lines 0 comments Download
chrome/browser/speech/tts_controller.cc View 3 chunks +2 lines, -13 lines 0 comments Download
chrome/browser/speech/tts_extension_loader_chromeos.h View 1 chunk +0 lines, -56 lines 0 comments Download
chrome/browser/speech/tts_extension_loader_chromeos.cc View 1 chunk +0 lines, -133 lines 0 comments Download
chrome/browser/speech/tts_platform.h View 2 chunks +5 lines, -7 lines 0 comments Download
chrome/browser/speech/tts_platform.cc View 2 chunks +4 lines, -4 lines 0 comments Download
chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
chrome/common/extensions/extension_constants.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
chrome/common/extensions/extension_constants.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
dmazzoni
@dpolukhin, could you do an initial review before I add more owners?
7 years ago (2013-12-05 18:13:50 UTC) #1
Dmitry Polukhin
In general things look good to me with few comments. https://codereview.chromium.org/102263005/diff/60001/chrome/browser/chromeos/extensions/speech_synthesis_loader.cc File chrome/browser/chromeos/extensions/speech_synthesis_loader.cc (right): https://codereview.chromium.org/102263005/diff/60001/chrome/browser/chromeos/extensions/speech_synthesis_loader.cc#newcode30 ...
7 years ago (2013-12-05 18:35:32 UTC) #2
dmazzoni
+kalman for extensions changes https://codereview.chromium.org/102263005/diff/60001/chrome/browser/chromeos/extensions/speech_synthesis_loader.cc File chrome/browser/chromeos/extensions/speech_synthesis_loader.cc (right): https://codereview.chromium.org/102263005/diff/60001/chrome/browser/chromeos/extensions/speech_synthesis_loader.cc#newcode30 chrome/browser/chromeos/extensions/speech_synthesis_loader.cc:30: lang_to_extension_id_map_["en-US"] = On 2013/12/05 18:35:32, ...
7 years ago (2013-12-05 23:19:47 UTC) #3
Dmitry Polukhin
lgtm https://codereview.chromium.org/102263005/diff/60001/chrome/browser/chromeos/extensions/speech_synthesis_loader.cc File chrome/browser/chromeos/extensions/speech_synthesis_loader.cc (right): https://codereview.chromium.org/102263005/diff/60001/chrome/browser/chromeos/extensions/speech_synthesis_loader.cc#newcode44 chrome/browser/chromeos/extensions/speech_synthesis_loader.cc:44: pref_service->GetList(prefs::kHighQualitySpeechSynthesisLanguages); On 2013/12/05 23:19:47, Dominic Mazzoni wrote: > ...
7 years ago (2013-12-05 23:29:19 UTC) #4
dmazzoni
https://codereview.chromium.org/102263005/diff/60001/chrome/browser/chromeos/extensions/speech_synthesis_loader.h File chrome/browser/chromeos/extensions/speech_synthesis_loader.h (right): https://codereview.chromium.org/102263005/diff/60001/chrome/browser/chromeos/extensions/speech_synthesis_loader.h#newcode45 chrome/browser/chromeos/extensions/speech_synthesis_loader.h:45: Profile* profile_; On 2013/12/05 23:29:19, Dmitry Polukhin wrote: > ...
7 years ago (2013-12-05 23:39:04 UTC) #5
not at google - send to devlin
https://codereview.chromium.org/102263005/diff/120001/chrome/browser/extensions/external_provider_impl.cc File chrome/browser/extensions/external_provider_impl.cc (right): https://codereview.chromium.org/102263005/diff/120001/chrome/browser/extensions/external_provider_impl.cc#newcode463 chrome/browser/extensions/external_provider_impl.cc:463: if (!is_chromeos_demo_session) { Could this go in ExternalComponentLoader? It ...
7 years ago (2013-12-09 21:08:09 UTC) #6
dmazzoni
https://codereview.chromium.org/102263005/diff/120001/chrome/browser/extensions/external_provider_impl.cc File chrome/browser/extensions/external_provider_impl.cc (right): https://codereview.chromium.org/102263005/diff/120001/chrome/browser/extensions/external_provider_impl.cc#newcode463 chrome/browser/extensions/external_provider_impl.cc:463: if (!is_chromeos_demo_session) { On 2013/12/09 21:08:09, kalman wrote: > ...
7 years ago (2013-12-10 07:55:52 UTC) #7
not at google - send to devlin
+ antony here, hopefully he has more context than me. Why did you choose the ...
7 years ago (2013-12-10 20:37:47 UTC) #8
not at google - send to devlin
7 years ago (2013-12-10 20:37:57 UTC) #9
asargent_no_longer_on_chrome
I still need to talk with saroop@ about the concerns we had with other external ...
7 years ago (2013-12-12 00:23:46 UTC) #10
dmazzoni
On 2013/12/12 00:23:46, Antony Sargent wrote: > I still need to talk with saroop@ about ...
7 years ago (2013-12-12 22:53:23 UTC) #11
asargent_no_longer_on_chrome
This version LGTM, since it seems to map a little more closely to how things ...
7 years ago (2013-12-13 00:47:00 UTC) #12
dmazzoni
Thanks! I'll look into pulling a bit of this into a helper class, that might ...
7 years ago (2013-12-13 00:48:26 UTC) #13
dmazzoni
+thestig for chrome/ OWNERS review of two files
7 years ago (2013-12-13 18:12:15 UTC) #14
Lei Zhang
On 2013/12/13 18:12:15, Dominic Mazzoni wrote: > +thestig for chrome/ OWNERS review of two files ...
7 years ago (2013-12-14 19:32:31 UTC) #15
dmazzoni
On 2013/12/14 19:32:31, Lei Zhang wrote: > On 2013/12/13 18:12:15, Dominic Mazzoni wrote: > > ...
7 years ago (2013-12-14 21:59:10 UTC) #16
dmazzoni
PTAL? Clang error fixed in previous patch set, latest patch set should pass all tests.
7 years ago (2013-12-16 20:42:38 UTC) #17
Lei Zhang
On 2013/12/14 21:59:10, Dominic Mazzoni wrote: > Sorry! Wanted your OWNERS review for: > > ...
7 years ago (2013-12-16 21:20:54 UTC) #18
dmazzoni
7 years ago (2013-12-17 00:21:30 UTC) #19
Message was sent while issue was closed.
Committed patchset #12 manually as r241081 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698