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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 1642283002: Deal with frame removal by content scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Last nits Created 4 years, 9 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/renderer/chrome_content_renderer_client.cc
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
index 5fa4a895e70f67ef7963f1c3eb6372ae03b0b472..a7d0931b4e2e5a1b27e110060191a223a1c4fd4b 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -1392,6 +1392,24 @@ void ChromeContentRendererClient::AddImageContextMenuProperties(
}
}
+void ChromeContentRendererClient::RunScriptsAtDocumentStart(
+ content::RenderFrame* render_frame) {
+#if defined(ENABLE_EXTENSIONS)
+ ChromeExtensionsRendererClient::GetInstance()->RunScriptsAtDocumentStart(
+ render_frame);
+ // |render_frame| might be dead by now.
+#endif
+}
+
+void ChromeContentRendererClient::RunScriptsAtDocumentEnd(
+ content::RenderFrame* render_frame) {
+#if defined(ENABLE_EXTENSIONS)
+ ChromeExtensionsRendererClient::GetInstance()->RunScriptsAtDocumentEnd(
+ render_frame);
+ // |render_frame| might be dead by now.
+#endif
+}
+
void
ChromeContentRendererClient::DidInitializeServiceWorkerContextOnWorkerThread(
v8::Local<v8::Context> context,
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.h ('k') | chrome/renderer/extensions/chrome_extensions_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698