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

Unified Diff: chrome/test/base/testing_profile.cc

Issue 9004019: Cleanup: Removing FileSystemPathManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | content/browser/file_system/browser_file_system_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index e60d0fc2dbf5e1c0b8781148b9411a4d021a3a1d..656c7aa62b30de8fb64adc7a6a59453d579b4a45 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -59,6 +59,7 @@
#include "testing/gmock/include/gmock/gmock.h"
#include "webkit/database/database_tracker.h"
#include "webkit/fileapi/file_system_context.h"
+#include "webkit/fileapi/file_system_options.h"
#include "webkit/quota/mock_quota_manager.h"
#include "webkit/quota/quota_manager.h"
@@ -126,6 +127,14 @@ ProfileKeyedService* CreateTestDesktopNotificationService(Profile* profile) {
return new DesktopNotificationService(profile, NULL);
}
+fileapi::FileSystemOptions CreateTestingFileSystemOptions(bool is_incognito) {
+ return fileapi::FileSystemOptions(
+ is_incognito
+ ? fileapi::FileSystemOptions::PROFILE_MODE_INCOGNITO
+ : fileapi::FileSystemOptions::PROFILE_MODE_NORMAL,
+ std::vector<std::string>());
+}
+
} // namespace
TestingProfile::TestingProfile()
@@ -610,9 +619,7 @@ fileapi::FileSystemContext* TestingProfile::GetFileSystemContext() {
GetExtensionSpecialStoragePolicy(),
NULL,
GetPath(),
- IsOffTheRecord(),
- true, // Allow file access from files.
- NULL);
+ CreateTestingFileSystemOptions(IsOffTheRecord()));
}
return file_system_context_.get();
}
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | content/browser/file_system/browser_file_system_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698