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

Issue 7729001: Get rid of link dependency from content to chrome. Make it get the SpeechInputManager through the... (Closed)

Created:
9 years, 4 months ago by jam
Modified:
9 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Get rid of link dependency from content to chrome. Make it get the SpeechInputManager through the embedder interface. I've renamed Chrome's SpeechInputManagerImpl to ChromeSpeechInputManager, to match what we've been doing for other chrome implementations of content classes. BUG=76697 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98147

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -537 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download
A chrome/browser/speech/chrome_speech_input_manager.h View 1 2 3 4 5 1 chunk +88 lines, -0 lines 0 comments Download
A + chrome/browser/speech/chrome_speech_input_manager.cc View 1 2 3 4 10 chunks +25 lines, -113 lines 0 comments Download
D chrome/browser/speech/speech_input_manager.cc View 1 chunk +0 lines, -396 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/content_browser_client.h View 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/mock_content_browser_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/mock_content_browser_client.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/speech/speech_input_browsertest.cc View 1 chunk +3 lines, -8 lines 0 comments Download
M content/browser/speech/speech_input_dispatcher_host.h View 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/speech/speech_input_dispatcher_host.cc View 1 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download
M content/browser/speech/speech_input_manager.h View 1 2 3 4 2 chunks +3 lines, -9 lines 2 comments Download
A content/browser/speech/speech_input_manager.cc View 1 2 3 4 1 chunk +33 lines, -0 lines 2 comments Download
M content/content_browser.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jam
9 years, 4 months ago (2011-08-24 20:31:19 UTC) #1
Paweł Hajdan Jr.
LGTM with a comment. http://codereview.chromium.org/7729001/diff/8001/chrome/browser/speech/chrome_speech_input_manager.h File chrome/browser/speech/chrome_speech_input_manager.h (right): http://codereview.chromium.org/7729001/diff/8001/chrome/browser/speech/chrome_speech_input_manager.h#newcode82 chrome/browser/speech/chrome_speech_input_manager.h:82: }; nit: No DISALLOW_COPY_AND_ASSIGN?
9 years, 4 months ago (2011-08-24 22:57:11 UTC) #2
jam
http://codereview.chromium.org/7729001/diff/8001/chrome/browser/speech/chrome_speech_input_manager.h File chrome/browser/speech/chrome_speech_input_manager.h (right): http://codereview.chromium.org/7729001/diff/8001/chrome/browser/speech/chrome_speech_input_manager.h#newcode82 chrome/browser/speech/chrome_speech_input_manager.h:82: }; On 2011/08/24 22:57:11, Paweł Hajdan Jr. wrote: > ...
9 years, 4 months ago (2011-08-24 23:08:56 UTC) #3
jam
Satish: I'm going to TBR this simple rename since you're the only one in the ...
9 years, 4 months ago (2011-08-24 23:44:08 UTC) #4
Satish
Thanks for the change. http://codereview.chromium.org/7729001/diff/13003/content/browser/speech/speech_input_manager.cc File content/browser/speech/speech_input_manager.cc (right): http://codereview.chromium.org/7729001/diff/13003/content/browser/speech/speech_input_manager.cc#newcode18 content/browser/speech/speech_input_manager.cc:18: void SpeechInputManager::ShowAudioInputSettings() { was this ...
9 years, 4 months ago (2011-08-25 09:08:52 UTC) #5
jam
9 years, 4 months ago (2011-08-25 16:36:43 UTC) #6
Thanks for looking, sending a followup now

http://codereview.chromium.org/7729001/diff/13003/content/browser/speech/spee...
File content/browser/speech/speech_input_manager.cc (right):

http://codereview.chromium.org/7729001/diff/13003/content/browser/speech/spee...
content/browser/speech/speech_input_manager.cc:18: void
SpeechInputManager::ShowAudioInputSettings() {
On 2011/08/25 09:08:52, Satish wrote:
> was this moved from the chrome/ to content/ because something was depending on
> it or because it didn't depend on the rest of chrome/ code?

It was moved because other content code depended on it
(SpeechInputDispatcherHost)

> 
> If it is the latter, there is a lot more of ChromeSpeechInputManager which
> doesn't depend on chrome/ (IIRC only the bubble related code needs to be there
> and the rest can move here).

If this can be moved, and the chrome parts abstracted out, that would be great
(esp if someone more familiar with speech than me can do it :) ). right now it
also has dependencies on grit, prefsservice, g_browser_process and
WMIComputerSystem (not sure what that is, it's from the installer dir) that
would need to be factored out

http://codereview.chromium.org/7729001/diff/13003/content/browser/speech/spee...
File content/browser/speech/speech_input_manager.h (right):

http://codereview.chromium.org/7729001/diff/13003/content/browser/speech/spee...
content/browser/speech/speech_input_manager.h:18: // This class is a singleton
and accessed via the Get method.
On 2011/08/25 09:08:52, Satish wrote:
> Need to update this comment since the Get() method was removed below.

done (moved it to the chrome impl)

Powered by Google App Engine
This is Rietveld 408576698