summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-14 11:01:53 +0000
committerbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-14 11:01:53 +0000
commit280829fd02a85c407ecc3c64e6450cb76efa421e (patch)
tree941158cf5ac02ecea297b853d62a06a3b1037f64 /chrome
parentf37595062cde15c3229cd68d8cfe9916b98d5fbb (diff)
downloadchromium_src-280829fd02a85c407ecc3c64e6450cb76efa421e.zip
chromium_src-280829fd02a85c407ecc3c64e6450cb76efa421e.tar.gz
chromium_src-280829fd02a85c407ecc3c64e6450cb76efa421e.tar.bz2
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
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/net/view_blob_internals_job_factory.cc2
-rw-r--r--chrome/browser/ui/webui/chrome_url_data_manager_backend.cc4
2 files changed, 3 insertions, 3 deletions
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<const ChromeURLRequestContext*>(request->context())->
+ static_cast<ChromeURLRequestContext*>(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<const ChromeURLRequestContext*>(job->request()->context());
+ ChromeURLRequestContext* context = static_cast<ChromeURLRequestContext*>(
+ job->request()->context());
// Forward along the request to the data source.
MessageLoop* target_message_loop = source->MessageLoopForRequestPath(path);