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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2630583002: Add setting to isolate zoom changes by default. (Closed)
Patch Set: Add more tests. Created 3 years, 11 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: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index aa9fbc0bcc86a95f72e76dae88efd37d8dfeca5f..e7975ea41f8dee5f4133b5cf5bba9afd9466fdf4 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -910,6 +910,11 @@ void WebContentsImpl::ClosePage() {
GetRenderViewHost()->ClosePage();
}
+void WebContentsImpl::OnReplaced(WebContents* new_contents) {
+ for (auto& observer : observers_)
+ observer.WebContentsReplaced(this, new_contents);
+}
+
RenderWidgetHostView* WebContentsImpl::GetRenderWidgetHostView() const {
return GetRenderManager()->GetRenderWidgetHostView();
}

Powered by Google App Engine
This is Rietveld 408576698