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

Side by Side Diff: webkit/browser/fileapi/mock_file_system_context.cc

Issue 23494028: Do not return FileSystem contents if the profile is in incognito mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "webkit/browser/fileapi/mock_file_system_context.h" 5 #include "webkit/browser/fileapi/mock_file_system_context.h"
6 6
7 #include "base/memory/scoped_vector.h" 7 #include "base/memory/scoped_vector.h"
8 #include "webkit/browser/fileapi/external_mount_points.h" 8 #include "webkit/browser/fileapi/external_mount_points.h"
9 #include "webkit/browser/fileapi/file_system_backend.h" 9 #include "webkit/browser/fileapi/file_system_backend.h"
10 #include "webkit/browser/fileapi/file_system_context.h" 10 #include "webkit/browser/fileapi/file_system_context.h"
(...skipping 21 matching lines...) Expand all
32 base::MessageLoopProxy::current().get(), 32 base::MessageLoopProxy::current().get(),
33 base::MessageLoopProxy::current().get(), 33 base::MessageLoopProxy::current().get(),
34 ExternalMountPoints::CreateRefCounted().get(), 34 ExternalMountPoints::CreateRefCounted().get(),
35 make_scoped_refptr(new quota::MockSpecialStoragePolicy()).get(), 35 make_scoped_refptr(new quota::MockSpecialStoragePolicy()).get(),
36 quota_manager_proxy, 36 quota_manager_proxy,
37 additional_providers.Pass(), 37 additional_providers.Pass(),
38 base_path, 38 base_path,
39 CreateAllowFileAccessOptions()); 39 CreateAllowFileAccessOptions());
40 } 40 }
41 41
42 FileSystemContext* CreateIncognitoFileSystemContextForTesting(
43 quota::QuotaManagerProxy* quota_manager_proxy,
44 const base::FilePath& base_path) {
45 ScopedVector<FileSystemBackend> additional_providers;
46 return new FileSystemContext(
47 base::MessageLoopProxy::current().get(),
48 base::MessageLoopProxy::current().get(),
49 ExternalMountPoints::CreateRefCounted().get(),
50 make_scoped_refptr(new quota::MockSpecialStoragePolicy()).get(),
51 quota_manager_proxy,
52 additional_providers.Pass(),
53 base_path,
54 CreateIncognitoFileSystemOptions());
55 }
56
42 } // namespace fileapi 57 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/mock_file_system_context.h ('k') | webkit/browser/fileapi/sandbox_file_system_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698