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

Unified Diff: chrome/browser/profiles/profile_impl.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: chrome/browser/profiles/profile_impl.cc
===================================================================
--- chrome/browser/profiles/profile_impl.cc (revision 98061)
+++ chrome/browser/profiles/profile_impl.cc (working copy)
@@ -60,6 +60,7 @@
#include "chrome/browser/search_engines/template_url_fetcher.h"
#include "chrome/browser/search_engines/template_url_service.h"
#include "chrome/browser/sessions/session_service_factory.h"
+#include "chrome/browser/speech/chrome_speech_input_manager.h"
#include "chrome/browser/spellchecker/spellcheck_profile.h"
#include "chrome/browser/sync/profile_sync_factory_impl.h"
#include "chrome/browser/sync/profile_sync_service.h"
@@ -408,7 +409,7 @@
GetSpellCheckProfile()->StartRecordingMetrics(
GetPrefs()->GetBoolean(prefs::kEnableSpellCheck));
- speech_input::SpeechInputManager::Get()->set_censor_results(
+ speech_input::ChromeSpeechInputManager::GetInstance()->set_censor_results(
prefs->GetBoolean(prefs::kSpeechInputCensorResults));
FilePath cookie_path = GetPath();
@@ -1456,8 +1457,9 @@
process->Send(new SpellCheckMsg_EnableAutoSpellCorrect(enabled));
}
} else if (*pref_name_in == prefs::kSpeechInputCensorResults) {
- speech_input::SpeechInputManager::Get()->set_censor_results(
- prefs->GetBoolean(prefs::kSpeechInputCensorResults));
+ speech_input::ChromeSpeechInputManager::GetInstance()->
+ set_censor_results(prefs->GetBoolean(
+ prefs::kSpeechInputCensorResults));
} else if (*pref_name_in == prefs::kClearSiteDataOnExit) {
clear_local_state_on_exit_ =
prefs->GetBoolean(prefs::kClearSiteDataOnExit);

Powered by Google App Engine
This is Rietveld 408576698