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

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

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync 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/renderer_host/transfer_navigation_resource_throttle.cc
===================================================================
--- chrome/browser/renderer_host/transfer_navigation_resource_throttle.cc (revision 121250)
+++ chrome/browser/renderer_host/transfer_navigation_resource_throttle.cc (working copy)
@@ -63,10 +63,8 @@
// request once the navigation controller properly assigns the right process
// to host the new URL.
// TODO(mpcomplete): handle for cases other than extensions (e.g. WebUI).
- const content::ResourceContext& resource_context = *info->context();
- ProfileIOData* io_data =
- reinterpret_cast<ProfileIOData*>(resource_context.GetUserData(NULL));
-
+ content::ResourceContext* resource_context = info->context();
+ ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context);
if (extensions::CrossesExtensionProcessBoundary(
io_data->GetExtensionInfoMap()->extensions(),
ExtensionURLInfo(request_->url()), ExtensionURLInfo(new_url))) {
« no previous file with comments | « chrome/browser/renderer_host/plugin_info_message_filter.cc ('k') | chrome/browser/speech/speech_input_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698