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

Unified Diff: chrome/browser/chromeos/cros/speech_synthesis_library.cc

Issue 7891021: Use stub impl when libcros fails to load (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix power manager stub impl Created 9 years, 3 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/chromeos/cros/speech_synthesis_library.cc
diff --git a/chrome/browser/chromeos/cros/speech_synthesis_library.cc b/chrome/browser/chromeos/cros/speech_synthesis_library.cc
index 9dc797ef2b682acaf148359e6f0d8fb0f67842bc..1102f946312929f2911df1ac6232fe85324f4500 100644
--- a/chrome/browser/chromeos/cros/speech_synthesis_library.cc
+++ b/chrome/browser/chromeos/cros/speech_synthesis_library.cc
@@ -66,10 +66,12 @@ class SpeechSynthesisLibraryStubImpl : public SpeechSynthesisLibrary {
// static
SpeechSynthesisLibrary* SpeechSynthesisLibrary::GetImpl(bool stub) {
+ SpeechSynthesisLibrary* impl;
if (stub)
- return new SpeechSynthesisLibraryStubImpl();
+ impl = new SpeechSynthesisLibraryStubImpl();
else
- return new SpeechSynthesisLibraryImpl();
+ impl = new SpeechSynthesisLibraryImpl();
+ return impl;
}
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698