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

Unified Diff: chrome/browser/guest_view/guest_view_base.cc

Issue 318433002: Prevent derived classes of GuestViewBase from overriding key methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 6 years, 7 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 | « chrome/browser/guest_view/guest_view_base.h ('k') | chrome/browser/guest_view/web_view/web_view_guest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/guest_view/guest_view_base.cc
diff --git a/chrome/browser/guest_view/guest_view_base.cc b/chrome/browser/guest_view/guest_view_base.cc
index 5acf36a2777507e8b67c769c1f87a313186073cc..41e2e2f696a666d757041784ec3734f7238bd4b2 100644
--- a/chrome/browser/guest_view/guest_view_base.cc
+++ b/chrome/browser/guest_view/guest_view_base.cc
@@ -211,6 +211,7 @@ void GuestViewBase::Attach(content::WebContents* embedder_web_contents,
}
void GuestViewBase::Destroy() {
+ WillDestroy();
if (!destruction_callback_.is_null())
destruction_callback_.Run();
delete guest_web_contents();
@@ -242,6 +243,7 @@ void GuestViewBase::DidStopLoading(content::RenderViewHost* render_view_host) {
}
void GuestViewBase::WebContentsDestroyed() {
+ GuestDestroyed();
delete this;
}
« no previous file with comments | « chrome/browser/guest_view/guest_view_base.h ('k') | chrome/browser/guest_view/web_view/web_view_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698