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

Unified Diff: chrome/browser/ui/cocoa/intents/web_intent_picker_cocoa2.h

Issue 11141037: Disable delegation to picker controller once it is deleted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: OSX delegate invalidation. 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/cocoa/intents/web_intent_picker_cocoa2.h
diff --git a/chrome/browser/ui/cocoa/intents/web_intent_picker_cocoa2.h b/chrome/browser/ui/cocoa/intents/web_intent_picker_cocoa2.h
index 1bcc969d377fcaacd01c0e6a0b3d33abf512e77d..c23c0163c64eaa0571837de224fdcffffd99a455 100644
--- a/chrome/browser/ui/cocoa/intents/web_intent_picker_cocoa2.h
+++ b/chrome/browser/ui/cocoa/intents/web_intent_picker_cocoa2.h
@@ -50,6 +50,7 @@ class WebIntentPickerCocoa2 : public WebIntentPicker,
virtual void OnInlineDispositionHandleKeyboardEvent(
const content::NativeWebKeyboardEvent& event) OVERRIDE;
virtual void OnPendingAsyncCompleted() OVERRIDE;
+ virtual void InvalidateDelegate() OVERRIDE;
virtual void OnInlineDispositionWebContentsLoaded(
content::WebContents* web_contents) OVERRIDE;
virtual gfx::Size GetMinInlineDispositionSize() OVERRIDE;
@@ -69,7 +70,7 @@ class WebIntentPickerCocoa2 : public WebIntentPicker,
private:
content::WebContents* const web_contents_;
- WebIntentPickerDelegate* const delegate_;
+ WebIntentPickerDelegate* delegate_;
WebIntentPickerModel* model_;
scoped_nsobject<WebIntentPickerViewController> view_controller_;
scoped_ptr<ConstrainedWindowMac2> constrained_window_;

Powered by Google App Engine
This is Rietveld 408576698