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

Unified Diff: chrome/renderer/external_extension.cc

Issue 11111004: Remove all callers of WebFrame::frameForEnteredContext (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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 | « no previous file | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/external_extension.cc
diff --git a/chrome/renderer/external_extension.cc b/chrome/renderer/external_extension.cc
index 690cc37b535f07da8a7a1478dc48eca2bf349848..6ebfcee164632747e0c6c8c672337d46d8d8716f 100644
--- a/chrome/renderer/external_extension.cc
+++ b/chrome/renderer/external_extension.cc
@@ -77,7 +77,7 @@ v8::Handle<v8::FunctionTemplate> ExternalExtensionWrapper::GetNativeFunction(
// static
RenderView* ExternalExtensionWrapper::GetRenderView() {
- WebFrame* webframe = WebFrame::frameForEnteredContext();
+ WebFrame* webframe = WebFrame::frameForCurrentContext();
DCHECK(webframe) << "There should be an active frame since we just got "
"a native function called.";
if (!webframe) return NULL;
@@ -120,7 +120,7 @@ v8::Handle<v8::Value> ExternalExtensionWrapper::IsSearchProviderInstalled(
RenderView* render_view = GetRenderView();
if (!render_view) return v8::Undefined();
- WebFrame* webframe = WebFrame::frameForEnteredContext();
+ WebFrame* webframe = WebFrame::frameForCurrentContext();
if (!webframe) return v8::Undefined();
search_provider::InstallState install = search_provider::DENIED;
« no previous file with comments | « no previous file | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698