| Index: chrome/browser/browsing_data_file_system_helper.cc
|
| ===================================================================
|
| --- chrome/browser/browsing_data_file_system_helper.cc (revision 122721)
|
| +++ chrome/browser/browsing_data_file_system_helper.cc (working copy)
|
| @@ -18,6 +18,7 @@
|
| #include "webkit/fileapi/file_system_types.h"
|
| #include "webkit/fileapi/sandbox_mount_point_provider.h"
|
|
|
| +using content::BrowserContext;
|
| using content::BrowserThread;
|
|
|
| namespace {
|
| @@ -113,13 +114,14 @@
|
| void BrowsingDataFileSystemHelperImpl::FetchFileSystemInfoInFileThread() {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
|
| scoped_ptr<fileapi::SandboxMountPointProvider::OriginEnumerator>
|
| - origin_enumerator(profile_->GetFileSystemContext()->
|
| + origin_enumerator(BrowserContext::GetFileSystemContext(profile_)->
|
| sandbox_provider()->CreateOriginEnumerator());
|
|
|
| // We don't own this pointer; it's a magic singleton generated by the
|
| // profile's FileSystemContext. Deleting it would be a bad idea.
|
| - fileapi::FileSystemQuotaUtil* quota_util = profile_->
|
| - GetFileSystemContext()->GetQuotaUtil(fileapi::kFileSystemTypeTemporary);
|
| + fileapi::FileSystemQuotaUtil* quota_util =
|
| + BrowserContext::GetFileSystemContext(profile_)->GetQuotaUtil(
|
| + fileapi::kFileSystemTypeTemporary);
|
|
|
| GURL current;
|
| while (!(current = origin_enumerator->Next()).is_empty()) {
|
| @@ -164,7 +166,8 @@
|
| void BrowsingDataFileSystemHelperImpl::DeleteFileSystemOriginInFileThread(
|
| const GURL& origin) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
|
| - profile_->GetFileSystemContext()->DeleteDataForOriginOnFileThread(origin);
|
| + BrowserContext::GetFileSystemContext(profile_)->
|
| + DeleteDataForOriginOnFileThread(origin);
|
| }
|
|
|
| } // namespace
|
|
|