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

Unified Diff: chrome/browser/ui/webui/constrained_web_dialog_ui.h

Issue 2798583002: WebUI: prevent WebContent to hold invalid pointer. (Closed)
Patch Set: Remove reference to |this| when the WebContent is no more owned. Created 3 years, 8 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/webui/constrained_web_dialog_ui.h
diff --git a/chrome/browser/ui/webui/constrained_web_dialog_ui.h b/chrome/browser/ui/webui/constrained_web_dialog_ui.h
index 79a152c1a5a0848f96ecf7368f9495d021c057cd..ea36958a42680f00b0886ab748528e57ec23c6f4 100644
--- a/chrome/browser/ui/webui/constrained_web_dialog_ui.h
+++ b/chrome/browser/ui/webui/constrained_web_dialog_ui.h
@@ -74,6 +74,7 @@ class ConstrainedWebDialogUI : public content::WebUIController {
// Sets the delegate on the WebContents.
static void SetConstrainedDelegate(content::WebContents* web_contents,
ConstrainedWebDialogDelegate* delegate);
+ static void ClearConstrainedDelegate(content::WebContents* web_contents);
protected:
// Returns the ConstrainedWebDialogDelegate saved with the WebContents.

Powered by Google App Engine
This is Rietveld 408576698