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

Unified Diff: chrome/browser/ui/app_list/app_list_view_delegate.cc

Issue 2082933002: Fix crash in app list view delegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/app_list_view_delegate.cc
diff --git a/chrome/browser/ui/app_list/app_list_view_delegate.cc b/chrome/browser/ui/app_list/app_list_view_delegate.cc
index 60d3b2040768e9522b4d4c05dd3fcd5d07f93c1e..814fddba9c42cfa41675e2f2fecb6af38aa61c89 100644
--- a/chrome/browser/ui/app_list/app_list_view_delegate.cc
+++ b/chrome/browser/ui/app_list/app_list_view_delegate.cc
@@ -255,6 +255,8 @@ void AppListViewDelegate::SetProfile(Profile* new_profile) {
model_ = NULL;
}
+ template_url_service_observer_.RemoveAll();
+
profile_ = new_profile;
if (!profile_) {
speech_ui_->SetSpeechRecognitionState(app_list::SPEECH_RECOGNITION_OFF,
@@ -274,7 +276,6 @@ void AppListViewDelegate::SetProfile(Profile* new_profile) {
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"431326 AppListViewDelegate TemplateURL etc."));
- template_url_service_observer_.RemoveAll();
if (app_list::switches::IsExperimentalAppListEnabled()) {
TemplateURLService* template_url_service =
TemplateURLServiceFactory::GetForProfile(profile_);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698