Cleanup: Removing FileSystemPathManager

- Deprecating FileSystemPathManager, which I believe no longer has a lot of reasons to exist
 * Changed GetFileSystemTypeString to a regular function in file_system_util
 * Added GetFileUtil(FileSystemType), GetMountPointProvider(FileSystemType), external_provider() to FileSystemContext
 * Moved all the tests in file_system_path_manager_unittest to file_system_mount_point_provider_unittest

- Also replaced two boolean values in FileSystemContext with a thin FileSystemOptions interface

BUG=none
TEST=no functional changes

Review URL: http://codereview.chromium.org/9004019

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116482 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index e60d0fc..17ae2c7c 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
@@ -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 @@
   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 @@
       GetExtensionSpecialStoragePolicy(),
       NULL,
       GetPath(),
-      IsOffTheRecord(),
-      true,  // Allow file access from files.
-      NULL);
+      CreateTestingFileSystemOptions(IsOffTheRecord()));
   }
   return file_system_context_.get();
 }