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

Unified Diff: chrome/browser/ui/intents/web_intent_picker_controller.cc

Issue 11141037: Disable delegation to picker controller once it is deleted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DCHECK on accessor. Created 8 years, 2 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/ui/intents/web_intent_picker_controller.cc
diff --git a/chrome/browser/ui/intents/web_intent_picker_controller.cc b/chrome/browser/ui/intents/web_intent_picker_controller.cc
index 65cc966f19ba0493092f37ff1f896842d78e71de..8441e8059cf74f2c34f3e31cca81a79eff4fd72c 100644
--- a/chrome/browser/ui/intents/web_intent_picker_controller.cc
+++ b/chrome/browser/ui/intents/web_intent_picker_controller.cc
@@ -197,6 +197,8 @@ WebIntentPickerController::WebIntentPickerController(
}
WebIntentPickerController::~WebIntentPickerController() {
+ if (picker_)
+ picker_->InvalidateDelegate();
}
// TODO(gbillock): combine this with ShowDialog.

Powered by Google App Engine
This is Rietveld 408576698