| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 2537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2548 storage_partition_path, | 2548 storage_partition_path, |
| 2549 pool->GetSequencedTaskRunner(pool->GetNamedSequenceToken( | 2549 pool->GetSequencedTaskRunner(pool->GetNamedSequenceToken( |
| 2550 MediaFileSystemBackend::kMediaTaskRunnerName)).get())); | 2550 MediaFileSystemBackend::kMediaTaskRunnerName)).get())); |
| 2551 #endif | 2551 #endif |
| 2552 #if defined(OS_CHROMEOS) | 2552 #if defined(OS_CHROMEOS) |
| 2553 fileapi::ExternalMountPoints* external_mount_points = | 2553 fileapi::ExternalMountPoints* external_mount_points = |
| 2554 content::BrowserContext::GetMountPoints(browser_context); | 2554 content::BrowserContext::GetMountPoints(browser_context); |
| 2555 DCHECK(external_mount_points); | 2555 DCHECK(external_mount_points); |
| 2556 chromeos::FileSystemBackend* backend = | 2556 chromeos::FileSystemBackend* backend = |
| 2557 new chromeos::FileSystemBackend( | 2557 new chromeos::FileSystemBackend( |
| 2558 new drive::FileSystemBackendDelegate(browser_context), | 2558 new drive::FileSystemBackendDelegate, |
| 2559 browser_context->GetSpecialStoragePolicy(), | 2559 browser_context->GetSpecialStoragePolicy(), |
| 2560 external_mount_points, | 2560 external_mount_points, |
| 2561 fileapi::ExternalMountPoints::GetSystemInstance()); | 2561 fileapi::ExternalMountPoints::GetSystemInstance()); |
| 2562 backend->AddSystemMountPoints(); | 2562 backend->AddSystemMountPoints(); |
| 2563 DCHECK(backend->CanHandleType(fileapi::kFileSystemTypeExternal)); | 2563 DCHECK(backend->CanHandleType(fileapi::kFileSystemTypeExternal)); |
| 2564 additional_backends->push_back(backend); | 2564 additional_backends->push_back(backend); |
| 2565 #endif | 2565 #endif |
| 2566 | 2566 |
| 2567 additional_backends->push_back( | 2567 additional_backends->push_back( |
| 2568 new sync_file_system::SyncFileSystemBackend( | 2568 new sync_file_system::SyncFileSystemBackend( |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2700 // releases of Chrome. Permitting "Unknown" allows these APIs to be used on | 2700 // releases of Chrome. Permitting "Unknown" allows these APIs to be used on |
| 2701 // Chromium builds as well. | 2701 // Chromium builds as well. |
| 2702 return channel <= chrome::VersionInfo::CHANNEL_DEV; | 2702 return channel <= chrome::VersionInfo::CHANNEL_DEV; |
| 2703 #else | 2703 #else |
| 2704 return false; | 2704 return false; |
| 2705 #endif | 2705 #endif |
| 2706 } | 2706 } |
| 2707 | 2707 |
| 2708 | 2708 |
| 2709 } // namespace chrome | 2709 } // namespace chrome |
| OLD | NEW |