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

Unified Diff: chrome/browser/extensions/extension_function_dispatcher.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR, fix a weird runtime issue. Created 8 years, 10 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
Index: chrome/browser/extensions/extension_function_dispatcher.cc
diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc
index 3fe605f30b99d0a30588c016912f24f3e0b5a4c8..9cbe4e04e9e1a5e78fa07870da16fd9bdd25d37c 100644
--- a/chrome/browser/extensions/extension_function_dispatcher.cc
+++ b/chrome/browser/extensions/extension_function_dispatcher.cc
@@ -668,7 +668,7 @@ Browser* ExtensionFunctionDispatcher::GetCurrentBrowser(
// we will search the incognito version only, regardless of the value of
// |include_incognito|.
Profile* profile = Profile::FromBrowserContext(
- render_view_host->process()->GetBrowserContext());
+ render_view_host->GetProcess()->GetBrowserContext());
browser = BrowserList::FindAnyBrowser(profile, include_incognito);
// NOTE(rafaelw): This can return NULL in some circumstances. In particular,
@@ -697,10 +697,10 @@ void ExtensionFunctionDispatcher::Dispatch(
scoped_refptr<ExtensionFunction> function(
CreateExtensionFunction(params, extension,
- render_view_host->process()->GetID(),
+ render_view_host->GetProcess()->GetID(),
*(service->process_map()),
profile(), render_view_host,
- render_view_host->routing_id()));
+ render_view_host->GetRoutingID()));
if (!function) {
LogFailure(extension, params.name, kAccessDenied);
return;

Powered by Google App Engine
This is Rietveld 408576698