diff options
Diffstat (limited to 'chrome/renderer/extensions/bindings_utils.cc')
-rw-r--r-- | chrome/renderer/extensions/bindings_utils.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/renderer/extensions/bindings_utils.cc b/chrome/renderer/extensions/bindings_utils.cc index 13738ca..3d29f4b 100644 --- a/chrome/renderer/extensions/bindings_utils.cc +++ b/chrome/renderer/extensions/bindings_utils.cc @@ -6,7 +6,9 @@ #include "base/string_util.h" #include "chrome/renderer/render_view.h" -#include "webkit/glue/webframe.h" +#include "webkit/api/public/WebFrame.h" + +using WebKit::WebFrame; namespace bindings_utils { @@ -78,12 +80,12 @@ PendingRequestMap& GetPendingRequestMap() { } RenderView* GetRenderViewForCurrentContext() { - WebFrame* webframe = WebFrame::RetrieveFrameForCurrentContext(); + WebFrame* webframe = WebFrame::frameForCurrentContext(); DCHECK(webframe) << "RetrieveCurrentFrame called when not in a V8 context."; if (!webframe) return NULL; - WebView* webview = webframe->GetView(); + WebView* webview = webframe->view(); if (!webview) return NULL; // can happen during closing |