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

Unified Diff: chrome/renderer/external_host_bindings.cc

Issue 164225: Switch to WebFrame from the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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/renderer/external_host_bindings.h ('k') | chrome/renderer/loadtimes_extension_bindings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/external_host_bindings.cc
===================================================================
--- chrome/renderer/external_host_bindings.cc (revision 22886)
+++ chrome/renderer/external_host_bindings.cc (working copy)
@@ -7,7 +7,6 @@
#include "base/values.h"
#include "chrome/common/render_messages.h"
#include "webkit/api/public/WebBindings.h"
-#include "webkit/glue/webframe.h"
using WebKit::WebBindings;
@@ -45,7 +44,7 @@
}
std::string origin;
- GURL origin_url(frame_->GetURL().GetOrigin());
+ GURL origin_url(GURL(frame_->url()).GetOrigin());
if (origin_url.is_empty()) {
// If the origin is not a scheme/host/port tuple, then return the literal
// string "null".
@@ -67,7 +66,7 @@
bool status = false;
if (target.compare("*") != 0) {
- GURL frame_url(frame_->GetURL());
+ GURL frame_url(frame_->url());
GURL frame_origin(frame_url.GetOrigin());
GURL target_origin(GURL(target).GetOrigin());
@@ -141,9 +140,9 @@
DCHECK(message_event != NULL);
DCHECK(frame_ != NULL);
- NPObject* window = frame_->GetWindowNPObject();
+ NPObject* window = frame_->windowObject();
if (!window) {
- NOTREACHED() << "frame_->GetWindowNPObject";
+ NOTREACHED() << "frame_->windowObject";
return false;
}
« no previous file with comments | « chrome/renderer/external_host_bindings.h ('k') | chrome/renderer/loadtimes_extension_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698