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

Unified Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 2928033002: Move GetDocument method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Split a DCHECK in two as suggested by boliu@. Created 3 years, 6 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/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index 64eaa786cd7106b9f74802c00e85effa097871d0..301ea0ef67a2c316fc7fa72afca62f0eebbd85a9 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -5,7 +5,11 @@
#include "content/renderer/browser_plugin/browser_plugin.h"
#include <stddef.h>
+
+#include <map>
+#include <string>
#include <utility>
+#include <vector>
#include "base/command_line.h"
#include "base/location.h"
@@ -159,7 +163,11 @@ void BrowserPlugin::Attach() {
blink::WebLocalFrame* frame = Container()->GetDocument().GetFrame();
attach_params.is_full_page_plugin =
frame->View()->MainFrame()->IsWebLocalFrame() &&
- frame->View()->MainFrame()->GetDocument().IsPluginDocument();
+ frame->View()
+ ->MainFrame()
+ ->ToWebLocalFrame()
+ ->GetDocument()
+ .IsPluginDocument();
}
BrowserPluginManager::Get()->Send(new BrowserPluginHostMsg_Attach(
render_frame_routing_id_,

Powered by Google App Engine
This is Rietveld 408576698