summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 00:09:23 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 00:09:23 +0000
commit4e7b5dbba296f276febccf8e9f7993ae80939418 (patch)
treeaf6aca3ef4daf0cfcbe6428c2224d6e0864946bd
parent7bdfef5829d17bf545a83c302acd1618f02a63d0 (diff)
downloadchromium_src-4e7b5dbba296f276febccf8e9f7993ae80939418.zip
chromium_src-4e7b5dbba296f276febccf8e9f7993ae80939418.tar.gz
chromium_src-4e7b5dbba296f276febccf8e9f7993ae80939418.tar.bz2
Folder path was not set correctly for media cache
TBR=darin Fixed a bug in ProfileImpl and OffTheRecordProfileImpl that path to media cache folder was set incorrectly. Review URL: http://codereview.chromium.org/45046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12417 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/profile.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc
index 224dd8d..08b3260 100644
--- a/chrome/browser/profile.cc
+++ b/chrome/browser/profile.cc
@@ -223,7 +223,7 @@ class OffTheRecordProfileImpl : public Profile,
cache_path = FilePath::FromWStringHack(user_cache_dir);
}
- cache_path.Append(chrome::kOffTheRecordMediaCacheDirname);
+ cache_path = cache_path.Append(chrome::kOffTheRecordMediaCacheDirname);
media_request_context_ =
ChromeURLRequestContext::CreateOffTheRecordForMedia(
this, cache_path);
@@ -635,7 +635,7 @@ URLRequestContext* ProfileImpl::GetRequestContextForMedia() {
cache_path = FilePath::FromWStringHack(user_cache_dir);
}
- cache_path.Append(chrome::kMediaCacheDirname);
+ cache_path = cache_path.Append(chrome::kMediaCacheDirname);
media_request_context_ = ChromeURLRequestContext::CreateOriginalForMedia(
this, cache_path);
media_request_context_->AddRef();