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

Unified Diff: content/renderer/web_ui_bindings.cc

Issue 7242014: Update src/content/renderer to reflect WEBKIT_FRAME_TO_DOCUMENT_API_MOVE (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « content/renderer/render_view.cc ('k') | content/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/web_ui_bindings.cc
===================================================================
--- content/renderer/web_ui_bindings.cc (revision 90236)
+++ content/renderer/web_ui_bindings.cc (working copy)
@@ -8,6 +8,7 @@
#include "base/stl_util-inl.h"
#include "base/values.h"
#include "content/common/view_messages.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h"
@@ -81,11 +82,11 @@
content.reset(new ListValue());
}
- // Retrieve the source frame's url
+ // Retrieve the source document's url
GURL source_url;
- WebKit::WebFrame* webframe = WebKit::WebFrame::frameForCurrentContext();
- if (webframe)
- source_url = webframe->url();
+ WebKit::WebFrame* frame = WebKit::WebFrame::frameForCurrentContext();
+ if (frame)
+ source_url = frame->document().url();
// Send the message up to the browser.
sender()->Send(new ViewHostMsg_WebUISend(
« no previous file with comments | « content/renderer/render_view.cc ('k') | content/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698