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

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: Rebase with power library changes 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
« no previous file with comments | « chrome/browser/chromeos/cros/screen_lock_library.cc ('k') | chrome/browser/chromeos/cros/update_library.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/browser/chromeos/cros/screen_lock_library.cc ('k') | chrome/browser/chromeos/cros/update_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698