Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: content/browser/file_system/browser_file_system_helper.cc

Issue 8277018: Move content_switches to content\public\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
10 #include "content/browser/browser_thread.h" 9 #include "content/browser/browser_thread.h"
10 #include "content/public/common/content_switches.h"
11 #include "webkit/quota/quota_manager.h" 11 #include "webkit/quota/quota_manager.h"
12 12
13 scoped_refptr<fileapi::FileSystemContext> CreateFileSystemContext( 13 scoped_refptr<fileapi::FileSystemContext> CreateFileSystemContext(
14 const FilePath& profile_path, bool is_incognito, 14 const FilePath& profile_path, bool is_incognito,
15 quota::SpecialStoragePolicy* special_storage_policy, 15 quota::SpecialStoragePolicy* special_storage_policy,
16 quota::QuotaManagerProxy* quota_manager_proxy) { 16 quota::QuotaManagerProxy* quota_manager_proxy) {
17 return new fileapi::FileSystemContext( 17 return new fileapi::FileSystemContext(
18 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), 18 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE),
19 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), 19 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
20 special_storage_policy, 20 special_storage_policy,
21 quota_manager_proxy, 21 quota_manager_proxy,
22 profile_path, 22 profile_path,
23 is_incognito, 23 is_incognito,
24 CommandLine::ForCurrentProcess()->HasSwitch( 24 CommandLine::ForCurrentProcess()->HasSwitch(
25 switches::kAllowFileAccessFromFiles), 25 switches::kAllowFileAccessFromFiles),
26 NULL); 26 NULL);
27 } 27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698