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

Issue 7989001: Remove use of default request context and fix use of speech censor flag (Closed)

Created:
9 years, 3 months ago by allanwoj
Modified:
9 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, dpranke+watch-content_chromium.org, jam, Paweł Hajdan Jr.
Visibility:
Public.

Description

Remove use of default request context and fix use of speech censor flag Now gets the request context and censor preference in BrowserRenderProcessHost and passes them through to the SpeechInputDispatcherHost. Each time a speech request is made, the SpeechInputDispatcherHost passes through these values to the SpeechInputManager. Also each time the censor preference changes, RenderViewContextMenu updates the current profile's SpeechInputPreferences. BUG=92366 TEST=Speech recognition works. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=103278

Patch Set 1 #

Patch Set 2 : " #

Patch Set 3 : " #

Patch Set 4 : " #

Total comments: 13

Patch Set 5 : Feedback changes #

Patch Set 6 : " #

Patch Set 7 : Update SpeechInputPreferences when preference changes #

Total comments: 20

Patch Set 8 : Feedback changes #

Patch Set 9 : " #

Patch Set 10 : Rebase #

Patch Set 11 : " #

Patch Set 12 : " #

Patch Set 13 : " #

Patch Set 14 : " #

Patch Set 15 : " #

Patch Set 16 : " #

Total comments: 2

Patch Set 17 : Remove forward declaration #

Patch Set 18 : rebase #

Patch Set 19 : License update #

Patch Set 20 : Separate overriden methods in profile_impl.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+321 lines, -114 lines) Patch
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +91 lines, -81 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +12 lines, -7 lines 0 comments Download
A chrome/browser/speech/chrome_speech_input_preferences.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/speech/chrome_speech_input_preferences.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +35 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/browser_context.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/browser_render_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/speech/speech_input_browsertest.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/speech/speech_input_dispatcher_host.h View 1 2 3 4 3 chunks +8 lines, -1 line 0 comments Download
M content/browser/speech/speech_input_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +12 lines, -4 lines 0 comments Download
M content/browser/speech/speech_input_manager.h View 1 2 3 4 5 6 4 chunks +5 lines, -6 lines 0 comments Download
M content/browser/speech/speech_input_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -3 lines 0 comments Download
A content/browser/speech/speech_input_preferences.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +31 lines, -0 lines 0 comments Download
A content/browser/speech/speech_input_preferences.cc View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
M content/browser/speech/speech_recognizer.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -0 lines 0 comments Download
M content/browser/speech/speech_recognizer.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -9 lines 0 comments Download
M content/browser/speech/speech_recognizer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/shell_browser_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -0 lines 0 comments Download
M content/shell/shell_browser_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +24 lines, -0 lines 0 comments Download
M content/test/test_browser_context.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/test/test_browser_context.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
allanwoj
9 years, 3 months ago (2011-09-22 16:57:55 UTC) #1
Satish
http://codereview.chromium.org/7989001/diff/2020/chrome/browser/profiles/off_the_record_profile_impl.cc File chrome/browser/profiles/off_the_record_profile_impl.cc (right): http://codereview.chromium.org/7989001/diff/2020/chrome/browser/profiles/off_the_record_profile_impl.cc#newcode429 chrome/browser/profiles/off_the_record_profile_impl.cc:429: return profile_->GetPrefs()->GetBoolean(prefs::kSpeechInputCensorResults); perhaps simpler to do profile_->GetSpeechCensorPref() ? http://codereview.chromium.org/7989001/diff/2020/chrome/browser/profiles/profile.h ...
9 years, 3 months ago (2011-09-23 09:44:57 UTC) #2
Avi (use Gerrit)
I can't comment on the speech code, as I'm not qualified, but it looks plausible ...
9 years, 3 months ago (2011-09-23 13:16:05 UTC) #3
allanwoj
http://codereview.chromium.org/7989001/diff/2020/chrome/browser/profiles/off_the_record_profile_impl.cc File chrome/browser/profiles/off_the_record_profile_impl.cc (right): http://codereview.chromium.org/7989001/diff/2020/chrome/browser/profiles/off_the_record_profile_impl.cc#newcode429 chrome/browser/profiles/off_the_record_profile_impl.cc:429: return profile_->GetPrefs()->GetBoolean(prefs::kSpeechInputCensorResults); On 2011/09/23 09:44:57, Satish wrote: > perhaps ...
9 years, 3 months ago (2011-09-23 14:12:44 UTC) #4
allanwoj
Changes to the way SpeechInputPreferences is updated. RenderViewContextMenu updates the current profile's SpeechInputPreferences when the ...
9 years, 3 months ago (2011-09-23 15:48:29 UTC) #5
Satish
Thanks for the changes, looks better. More comments below.. http://codereview.chromium.org/7989001/diff/20001/chrome/browser/profiles/profile.h File chrome/browser/profiles/profile.h (right): http://codereview.chromium.org/7989001/diff/20001/chrome/browser/profiles/profile.h#newcode207 chrome/browser/profiles/profile.h:207: ...
9 years, 3 months ago (2011-09-23 16:31:54 UTC) #6
allanwoj
http://codereview.chromium.org/7989001/diff/20001/chrome/browser/profiles/profile.h File chrome/browser/profiles/profile.h (right): http://codereview.chromium.org/7989001/diff/20001/chrome/browser/profiles/profile.h#newcode207 chrome/browser/profiles/profile.h:207: virtual SpeechInputPreferences* GetSpeechInputPreferences() = 0; On 2011/09/23 16:31:54, Satish ...
9 years, 2 months ago (2011-09-26 13:05:15 UTC) #7
Satish
LGTM http://codereview.chromium.org/7989001/diff/22037/content/shell/shell_browser_context.h File content/shell/shell_browser_context.h (right): http://codereview.chromium.org/7989001/diff/22037/content/shell/shell_browser_context.h#newcode18 content/shell/shell_browser_context.h:18: class SpeechInputPreferences; this isn't required since you have ...
9 years, 2 months ago (2011-09-26 16:11:05 UTC) #8
allanwoj
http://codereview.chromium.org/7989001/diff/22037/content/shell/shell_browser_context.h File content/shell/shell_browser_context.h (right): http://codereview.chromium.org/7989001/diff/22037/content/shell/shell_browser_context.h#newcode18 content/shell/shell_browser_context.h:18: class SpeechInputPreferences; On 2011/09/26 16:11:06, Satish wrote: > this ...
9 years, 2 months ago (2011-09-26 16:16:02 UTC) #9
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/allanwoj@chromium.org/7989001/26063
9 years, 2 months ago (2011-09-27 08:45:31 UTC) #10
commit-bot: I haz the power
Can't process patch for file chrome/chrome_browser.gypi. File's status is None, patchset upload is incomplete.
9 years, 2 months ago (2011-09-27 08:45:35 UTC) #11
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/allanwoj@chromium.org/7989001/30001
9 years, 2 months ago (2011-09-27 09:07:15 UTC) #12
commit-bot: I haz the power
Presubmit check for 7989001-30001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 2 months ago (2011-09-27 09:07:27 UTC) #13
allanwoj
WillChan: Could you please take a look at this, I need someone from the profiles ...
9 years, 2 months ago (2011-09-27 09:15:04 UTC) #14
willchan no longer on Chromium
Sending to Elliot's way since it's more Profile/ProfileImpl related. He may ask you to use ...
9 years, 2 months ago (2011-09-27 18:29:20 UTC) #15
Elliot Glaysher
On 2011/09/27 18:29:20, willchan wrote: > Sending to Elliot's way since it's more Profile/ProfileImpl related. ...
9 years, 2 months ago (2011-09-27 20:10:31 UTC) #16
allanwoj
On 2011/09/27 20:10:31, Elliot Glaysher wrote: > On 2011/09/27 18:29:20, willchan wrote: > > Sending ...
9 years, 2 months ago (2011-09-28 11:35:22 UTC) #17
Elliot Glaysher
On 2011/09/28 11:35:22, allanwoj wrote: > Elliot: I started work on removing GetSpeechInputPreferences when I ...
9 years, 2 months ago (2011-09-28 17:37:16 UTC) #18
Elliot Glaysher
On 2011/09/28 17:37:16, Elliot Glaysher wrote: > On 2011/09/28 11:35:22, allanwoj wrote: > > Elliot: ...
9 years, 2 months ago (2011-09-28 20:19:01 UTC) #19
allanwoj
Cheers Elliot, I have separated the overriden methods in profile_impl.h. I also changed the NewRunnableMethod ...
9 years, 2 months ago (2011-09-29 11:29:35 UTC) #20
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/allanwoj@chromium.org/7989001/40001
9 years, 2 months ago (2011-09-29 13:20:55 UTC) #21
commit-bot: I haz the power
9 years, 2 months ago (2011-09-29 15:13:04 UTC) #22
Change committed as 103278

Powered by Google App Engine
This is Rietveld 408576698