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

Unified Diff: ui/app_list/speech_ui_model.cc

Issue 550883002: Fix SpeechUIModel lifetime issue in Chrome's AppListViewDelegate when switching profiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clear state for SetProfile(NULL) Created 6 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 | « ui/app_list/speech_ui_model.h ('k') | ui/app_list/test/app_list_test_view_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/speech_ui_model.cc
diff --git a/ui/app_list/speech_ui_model.cc b/ui/app_list/speech_ui_model.cc
index 7f144db52ea8cb96956eb1ea9f43e58fbc5b1698..57a123cc8eaf91ae50b183b3bc9f1fe881722d2b 100644
--- a/ui/app_list/speech_ui_model.cc
+++ b/ui/app_list/speech_ui_model.cc
@@ -15,10 +15,13 @@ const int16 kDefaultSoundLevel = 200;
} // namespace
-SpeechUIModel::SpeechUIModel(SpeechRecognitionState initial_state)
- : state_(initial_state),
+SpeechUIModel::SpeechUIModel()
+ : is_final_(false),
+ sound_level_(0),
+ state_(app_list::SPEECH_RECOGNITION_OFF),
minimum_sound_level_(kDefaultSoundLevel),
- maximum_sound_level_(kDefaultSoundLevel) {}
+ maximum_sound_level_(kDefaultSoundLevel) {
+}
SpeechUIModel::~SpeechUIModel() {}
« no previous file with comments | « ui/app_list/speech_ui_model.h ('k') | ui/app_list/test/app_list_test_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698