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

Unified Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 79070: createWindow api call. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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/browser/external_tab_container.cc ('k') | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_view_host.cc
===================================================================
--- chrome/browser/renderer_host/render_view_host.cc (revision 14694)
+++ chrome/browser/renderer_host/render_view_host.cc (working copy)
@@ -890,8 +890,8 @@
if (PageTransition::IsMainFrame(validated_params.transition)) {
ExtensionFunctionDispatcher* new_efd = NULL;
if (validated_params.url.SchemeIs(chrome::kExtensionScheme)) {
- new_efd = new ExtensionFunctionDispatcher(this,
- validated_params.url.host());
+ new_efd = delegate()->CreateExtensionFunctionDispatcher(this,
+ validated_params.url.host());
}
extension_function_dispatcher_.reset(new_efd);
}
@@ -1352,6 +1352,7 @@
int callback_id) {
// TODO(aa): Here is where we can check that this renderer was supposed to be
// able to call extension APIs.
+ DCHECK(extension_function_dispatcher_.get());
extension_function_dispatcher_->HandleRequest(name, args, callback_id);
}
« no previous file with comments | « chrome/browser/external_tab_container.cc ('k') | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698