From 280829fd02a85c407ecc3c64e6450cb76efa421e Mon Sep 17 00:00:00 2001 From: "battre@chromium.org" Date: Thu, 14 Jul 2011 11:01:53 +0000 Subject: Revert 92511 - Make the URLRequestContext constant The URLRequestContext is basically a collection of pointers to other data structures. This CL makes sure that these pointers are not easily modified after the construction of the URLRequestContext. BUG=67597 TEST=no Review URL: http://codereview.chromium.org/7322010 TBR=battre@chromium.org Review URL: http://codereview.chromium.org/7366005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92512 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/net/view_blob_internals_job_factory.cc | 2 +- chrome/browser/ui/webui/chrome_url_data_manager_backend.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome') diff --git a/chrome/browser/net/view_blob_internals_job_factory.cc b/chrome/browser/net/view_blob_internals_job_factory.cc index dd955e5..2b84f23 100644 --- a/chrome/browser/net/view_blob_internals_job_factory.cc +++ b/chrome/browser/net/view_blob_internals_job_factory.cc @@ -21,7 +21,7 @@ bool ViewBlobInternalsJobFactory::IsSupportedURL(const GURL& url) { net::URLRequestJob* ViewBlobInternalsJobFactory::CreateJobForRequest( net::URLRequest* request) { webkit_blob::BlobStorageController* blob_storage_controller = - static_cast(request->context())-> + static_cast(request->context())-> blob_storage_context()->controller(); return new webkit_blob::ViewBlobInternalsJob( request, blob_storage_controller); diff --git a/chrome/browser/ui/webui/chrome_url_data_manager_backend.cc b/chrome/browser/ui/webui/chrome_url_data_manager_backend.cc index a2344d0..8c11a4f 100644 --- a/chrome/browser/ui/webui/chrome_url_data_manager_backend.cc +++ b/chrome/browser/ui/webui/chrome_url_data_manager_backend.cc @@ -342,8 +342,8 @@ bool ChromeURLDataManagerBackend::StartRequest(const GURL& url, // going to get called once we return. job->SetMimeType(source->GetMimeType(path)); - const ChromeURLRequestContext* context = - static_cast(job->request()->context()); + ChromeURLRequestContext* context = static_cast( + job->request()->context()); // Forward along the request to the data source. MessageLoop* target_message_loop = source->MessageLoopForRequestPath(path); -- cgit v1.1