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

Issue 448033002: Eliminate the dependency of Profile from TtsMessageFilter. (Closed)

Created:
6 years, 4 months ago by mrunal
Modified:
6 years, 4 months ago
Reviewers:
dmazzoni, David Tseng
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Eliminate the dependency of Profile from TtsMessageFilter. Eliminating the dependency of Profile from TtsMessageFilter by delegating GetProfile function to TtsEngineDelegate. This is part of an effort to move TTS to content. BUG=347045 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289245

Patch Set 1 #

Total comments: 6

Patch Set 2 : Replace Profile by BrowserContext #

Total comments: 7

Patch Set 3 : Replace Profile by BrowserContext and Fix indents #

Total comments: 2

Patch Set 4 : Fixed compilation error on ChromeOS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -48 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/speech/extension_api/tts_engine_extension_api.h View 1 2 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/speech/extension_api/tts_engine_extension_api.cc View 1 6 chunks +13 lines, -8 lines 0 comments Download
M chrome/browser/speech/extension_api/tts_extension_api.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/speech/tts_chromeos.cc View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/speech/tts_controller.h View 1 2 6 chunks +15 lines, -11 lines 0 comments Download
M chrome/browser/speech/tts_controller_impl.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/speech/tts_controller_impl.cc View 1 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/speech/tts_message_filter.h View 1 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/speech/tts_message_filter.cc View 1 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/speech/tts_platform.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/speech/tts_platform.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
mrunal
6 years, 4 months ago (2014-08-07 03:28:06 UTC) #1
dmazzoni
Thanks for your patience, I was out for a week. https://codereview.chromium.org/448033002/diff/1/chrome/browser/speech/extension_api/tts_engine_extension_api.cc File chrome/browser/speech/extension_api/tts_engine_extension_api.cc (right): https://codereview.chromium.org/448033002/diff/1/chrome/browser/speech/extension_api/tts_engine_extension_api.cc#newcode243 ...
6 years, 4 months ago (2014-08-11 07:23:09 UTC) #2
mrunal
https://codereview.chromium.org/448033002/diff/1/chrome/browser/speech/extension_api/tts_engine_extension_api.cc File chrome/browser/speech/extension_api/tts_engine_extension_api.cc (right): https://codereview.chromium.org/448033002/diff/1/chrome/browser/speech/extension_api/tts_engine_extension_api.cc#newcode243 chrome/browser/speech/extension_api/tts_engine_extension_api.cc:243: return Profile::FromBrowserContext(rph->GetBrowserContext()); On 2014/08/11 07:23:09, dmazzoni wrote: > Perhaps ...
6 years, 4 months ago (2014-08-11 23:25:07 UTC) #3
mrunal
After some rethinking I have replaced the use of Profile altogether by BrowserContext. I don't ...
6 years, 4 months ago (2014-08-12 02:58:38 UTC) #4
dmazzoni
https://codereview.chromium.org/448033002/diff/1/chrome/browser/speech/extension_api/tts_engine_extension_api.cc File chrome/browser/speech/extension_api/tts_engine_extension_api.cc (right): https://codereview.chromium.org/448033002/diff/1/chrome/browser/speech/extension_api/tts_engine_extension_api.cc#newcode243 chrome/browser/speech/extension_api/tts_engine_extension_api.cc:243: return Profile::FromBrowserContext(rph->GetBrowserContext()); On 2014/08/11 23:25:07, mrunal wrote: > On ...
6 years, 4 months ago (2014-08-12 06:16:01 UTC) #5
dmazzoni
lgtm Great! This is what I had in mind. It looks to me like now ...
6 years, 4 months ago (2014-08-12 06:21:08 UTC) #6
mrunal
https://codereview.chromium.org/448033002/diff/20001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/448033002/diff/20001/chrome/browser/chrome_content_browser_client.cc#newcode803 chrome/browser/chrome_content_browser_client.cc:803: host->AddFilter(new TtsMessageFilter(id, host->GetBrowserContext())); On 2014/08/12 06:21:08, dmazzoni wrote: > ...
6 years, 4 months ago (2014-08-12 17:40:58 UTC) #7
dmazzoni
On Tue, Aug 12, 2014 at 10:40 AM, <mrunal.kapade@intel.com> wrote: > > https://codereview.chromium.org/448033002/diff/20001/ > chrome/browser/chrome_content_browser_client.cc ...
6 years, 4 months ago (2014-08-12 18:26:43 UTC) #8
mrunal
https://codereview.chromium.org/448033002/diff/40001/chrome/browser/speech/extension_api/tts_engine_extension_api.h File chrome/browser/speech/extension_api/tts_engine_extension_api.h (right): https://codereview.chromium.org/448033002/diff/40001/chrome/browser/speech/extension_api/tts_engine_extension_api.h#newcode42 chrome/browser/speech/extension_api/tts_engine_extension_api.h:42: std::vector<VoiceData>* out_voices) OVERRIDE; Also fixed the indentation here. https://codereview.chromium.org/448033002/diff/40001/chrome/browser/speech/tts_controller.h ...
6 years, 4 months ago (2014-08-12 18:55:17 UTC) #9
mrunal
The CQ bit was checked by mrunal.kapade@intel.com
6 years, 4 months ago (2014-08-12 21:40:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mrunal.kapade@intel.com/448033002/40001
6 years, 4 months ago (2014-08-12 21:45:31 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-13 01:13:19 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-13 01:30:04 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/3526)
6 years, 4 months ago (2014-08-13 01:30:08 UTC) #14
mrunal
On 2014/08/13 01:30:08, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 4 months ago (2014-08-13 01:46:43 UTC) #15
mrunal
The CQ bit was checked by mrunal.kapade@intel.com
6 years, 4 months ago (2014-08-13 06:03:32 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mrunal.kapade@intel.com/448033002/60001
6 years, 4 months ago (2014-08-13 06:04:26 UTC) #17
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 10:04:32 UTC) #18
Message was sent while issue was closed.
Change committed as 289245

Powered by Google App Engine
This is Rietveld 408576698