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

Unified Diff: athena/home/home_card_impl.cc

Issue 490033003: Fixes three crashes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « no previous file | athena/system/device_socket_listener.h » ('j') | athena/system/device_socket_listener.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/home/home_card_impl.cc
diff --git a/athena/home/home_card_impl.cc b/athena/home/home_card_impl.cc
index 9a8526d8c36be6653adc847d33f9a8112121777a..d16ff9c24a08b071286e2afee5a614d1dfbf9aa2 100644
--- a/athena/home/home_card_impl.cc
+++ b/athena/home/home_card_impl.cc
@@ -486,6 +486,11 @@ HomeCardImpl::~HomeCardImpl() {
if (activation_client_)
activation_client_->RemoveObserver(this);
home_card_widget_->CloseNow();
+
+ // Reset the view delegate first as it access search provider during
+ // shutdown.
+ view_delegate_.reset();
+ search_provider_.reset();
instance = NULL;
}
« no previous file with comments | « no previous file | athena/system/device_socket_listener.h » ('j') | athena/system/device_socket_listener.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698