Chromium Code Reviews| Index: chrome/browser/chrome_content_browser_client.cc |
| diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
| index 002a306d6e2cef068b7f9b3ba7013fb0df034cf9..4363eee1a1089b7dd1293a5004d186bfd020ffb1 100644 |
| --- a/chrome/browser/chrome_content_browser_client.cc |
| +++ b/chrome/browser/chrome_content_browser_client.cc |
| @@ -134,6 +134,7 @@ |
| #include "ui/base/l10n/l10n_util.h" |
| #include "ui/base/resource/resource_bundle.h" |
| #include "ui/message_center/message_center_util.h" |
| +#include "webkit/browser/fileapi/external_mount_points.h" |
| #include "webkit/common/webpreferences.h" |
| #include "webkit/plugins/plugin_switches.h" |
| @@ -145,6 +146,7 @@ |
| #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h" |
| #elif defined(OS_CHROMEOS) |
| #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" |
| +#include "chrome/browser/chromeos/fileapi/cros_mount_point_provider.h" |
| #include "chrome/browser/chromeos/login/startup_utils.h" |
| #include "chrome/browser/chromeos/login/user_manager.h" |
| #include "chrome/browser/chromeos/system/statistics_provider.h" |
| @@ -2237,6 +2239,8 @@ void ChromeContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( |
| void ChromeContentBrowserClient::GetAdditionalFileSystemMountPointProviders( |
| const base::FilePath& storage_partition_path, |
| + quota::SpecialStoragePolicy* special_storage_policy, |
| + fileapi::ExternalMountPoints* external_mount_points, |
| ScopedVector<fileapi::FileSystemMountPointProvider>* additional_providers) { |
| #if !defined(OS_ANDROID) |
| base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool(); |
| @@ -2245,6 +2249,17 @@ void ChromeContentBrowserClient::GetAdditionalFileSystemMountPointProviders( |
| pool->GetSequencedTaskRunner(pool->GetNamedSequenceToken( |
| MediaFileSystemMountPointProvider::kMediaTaskRunnerName)).get())); |
| #endif |
| +#if defined(OS_CHROMEOS) |
| + DCHECK(external_mount_points); |
| + chromeos::CrosMountPointProvider* cros_mount_provider = |
| + new chromeos::CrosMountPointProvider( |
| + special_storage_policy, |
| + external_mount_points, |
| + fileapi::ExternalMountPoints::GetSystemInstance()); |
| + cros_mount_provider->AddSystemMountPoints(); |
| + additional_providers->push_back(cros_mount_provider); |
| + DCHECK(cros_mount_provider->CanHandleType(fileapi::kFileSystemTypeExternal)); |
|
satorux1
2013/06/25 20:30:06
nit: swap lines 2260 and 2261?
hidehiko
2013/06/26 04:31:35
Done.
|
| +#endif |
| } |
| #if defined(OS_POSIX) && !defined(OS_MACOSX) |