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

Unified Diff: content/browser/speech/speech_input_browsertest.cc

Issue 7729001: Get rid of link dependency from content to chrome. Make it get the SpeechInputManager through the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/speech/speech_input_browsertest.cc
===================================================================
--- content/browser/speech/speech_input_browsertest.cc (revision 98061)
+++ content/browser/speech/speech_input_browsertest.cc (working copy)
@@ -164,22 +164,17 @@
// Inject the fake manager factory so that the test result is returned to
// the web page.
- SpeechInputDispatcherHost::set_manager_accessor(&fakeManagerAccessor);
+ SpeechInputDispatcherHost::set_manager(speech_input_manager_);
}
virtual void TearDownInProcessBrowserTestFixture() {
speech_input_manager_ = NULL;
}
- // Factory method.
- static SpeechInputManager* fakeManagerAccessor() {
- return speech_input_manager_;
- }
-
FakeSpeechInputManager fake_speech_input_manager_;
- // This is used by the static |fakeManagerAccessor|, and it is a pointer
- // rather than a direct instance per the style guide.
+ // This is used by the static |fakeManager|, and it is a pointer rather than a
+ // direct instance per the style guide.
static SpeechInputManager* speech_input_manager_;
};

Powered by Google App Engine
This is Rietveld 408576698