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