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

Unified Diff: chrome/browser/ui/intents/web_intent_picker.h

Issue 11141037: Disable delegation to picker controller once it is deleted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix tests. 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.h
diff --git a/chrome/browser/ui/intents/web_intent_picker.h b/chrome/browser/ui/intents/web_intent_picker.h
index 38348ca98035af0993bbbf4e994499ebb826cfe9..4369b3569b7114ef089141cbb0acdbe06a13b44c 100644
--- a/chrome/browser/ui/intents/web_intent_picker.h
+++ b/chrome/browser/ui/intents/web_intent_picker.h
@@ -103,6 +103,10 @@ class WebIntentPicker {
// activities.
virtual void OnPendingAsyncCompleted() = 0;
+ // Called once the delegate gets destroyed/invalid. This should only be
+ // called during a shut down sequence that will tear down the picker, too.
+ virtual void InvalidateDelegate() = 0;
+
// Called when the inline disposition's web contents have been loaded.
virtual void OnInlineDispositionWebContentsLoaded(
content::WebContents* web_contents) {}

Powered by Google App Engine
This is Rietveld 408576698