| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/file_system/browser_file_system_helper.h" | 5 #include "content/browser/file_system/browser_file_system_helper.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "content/common/content_switches.h" | 9 #include "content/common/content_switches.h" |
| 10 #include "content/browser/browser_thread.h" | 10 #include "content/browser/browser_thread.h" |
| 11 | 11 |
| 12 scoped_refptr<fileapi::FileSystemContext> CreateFileSystemContext( | 12 scoped_refptr<fileapi::FileSystemContext> CreateFileSystemContext( |
| 13 const FilePath& profile_path, bool is_incognito, | 13 const FilePath& profile_path, bool is_incognito, |
| 14 quota::SpecialStoragePolicy* special_storage_policy) { | 14 quota::SpecialStoragePolicy* special_storage_policy) { |
| 15 return new fileapi::FileSystemContext( | 15 return new fileapi::FileSystemContext( |
| 16 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), | 16 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), |
| 17 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), | 17 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), |
| 18 special_storage_policy, | 18 special_storage_policy, |
| 19 profile_path, | 19 profile_path, |
| 20 is_incognito, | 20 is_incognito, |
| 21 CommandLine::ForCurrentProcess()->HasSwitch( | 21 CommandLine::ForCurrentProcess()->HasSwitch( |
| 22 switches::kAllowFileAccessFromFiles), | 22 switches::kAllowFileAccessFromFiles), |
| 23 CommandLine::ForCurrentProcess()->HasSwitch( | 23 CommandLine::ForCurrentProcess()->HasSwitch( |
| 24 switches::kUnlimitedQuotaForFiles)); | 24 switches::kUnlimitedQuotaForFiles), |
| 25 NULL); |
| 25 } | 26 } |
| OLD | NEW |