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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 #include "sandbox/win/src/sandbox_policy.h" | 160 #include "sandbox/win/src/sandbox_policy.h" |
161 #elif defined(OS_MACOSX) | 161 #elif defined(OS_MACOSX) |
162 #include "chrome/browser/chrome_browser_main_mac.h" | 162 #include "chrome/browser/chrome_browser_main_mac.h" |
163 #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h" | 163 #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h" |
164 #include "components/breakpad/app/breakpad_mac.h" | 164 #include "components/breakpad/app/breakpad_mac.h" |
165 #elif defined(OS_CHROMEOS) | 165 #elif defined(OS_CHROMEOS) |
166 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" | 166 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" |
167 #include "chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.h" | 167 #include "chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.h" |
168 #include "chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate.
h" | 168 #include "chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate.
h" |
169 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" | 169 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" |
| 170 #include "chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.h" |
170 #include "chrome/browser/chromeos/login/startup_utils.h" | 171 #include "chrome/browser/chromeos/login/startup_utils.h" |
171 #include "chrome/browser/chromeos/login/user_manager.h" | 172 #include "chrome/browser/chromeos/login/user_manager.h" |
172 #include "chrome/browser/chromeos/system/input_device_settings.h" | 173 #include "chrome/browser/chromeos/system/input_device_settings.h" |
173 #include "chromeos/chromeos_switches.h" | 174 #include "chromeos/chromeos_switches.h" |
174 #elif defined(OS_LINUX) | 175 #elif defined(OS_LINUX) |
175 #include "chrome/browser/chrome_browser_main_linux.h" | 176 #include "chrome/browser/chrome_browser_main_linux.h" |
176 #elif defined(OS_ANDROID) | 177 #elif defined(OS_ANDROID) |
177 #include "chrome/browser/android/new_tab_page_url_handler.h" | 178 #include "chrome/browser/android/new_tab_page_url_handler.h" |
178 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" | 179 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" |
179 #include "chrome/browser/chrome_browser_main_android.h" | 180 #include "chrome/browser/chrome_browser_main_android.h" |
(...skipping 2323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2503 pool->GetSequencedTaskRunner(pool->GetNamedSequenceToken( | 2504 pool->GetSequencedTaskRunner(pool->GetNamedSequenceToken( |
2504 MediaFileSystemBackend::kMediaTaskRunnerName)).get())); | 2505 MediaFileSystemBackend::kMediaTaskRunnerName)).get())); |
2505 #endif | 2506 #endif |
2506 #if defined(OS_CHROMEOS) | 2507 #if defined(OS_CHROMEOS) |
2507 fileapi::ExternalMountPoints* external_mount_points = | 2508 fileapi::ExternalMountPoints* external_mount_points = |
2508 content::BrowserContext::GetMountPoints(browser_context); | 2509 content::BrowserContext::GetMountPoints(browser_context); |
2509 DCHECK(external_mount_points); | 2510 DCHECK(external_mount_points); |
2510 chromeos::FileSystemBackend* backend = new chromeos::FileSystemBackend( | 2511 chromeos::FileSystemBackend* backend = new chromeos::FileSystemBackend( |
2511 new drive::FileSystemBackendDelegate, | 2512 new drive::FileSystemBackendDelegate, |
2512 new chromeos::file_system_provider::BackendDelegate, | 2513 new chromeos::file_system_provider::BackendDelegate, |
| 2514 new chromeos::MTPFileSystemBackendDelegate(storage_partition_path), |
2513 browser_context->GetSpecialStoragePolicy(), | 2515 browser_context->GetSpecialStoragePolicy(), |
2514 external_mount_points, | 2516 external_mount_points, |
2515 fileapi::ExternalMountPoints::GetSystemInstance()); | 2517 fileapi::ExternalMountPoints::GetSystemInstance()); |
2516 backend->AddSystemMountPoints(); | 2518 backend->AddSystemMountPoints(); |
2517 DCHECK(backend->CanHandleType(fileapi::kFileSystemTypeExternal)); | 2519 DCHECK(backend->CanHandleType(fileapi::kFileSystemTypeExternal)); |
2518 additional_backends->push_back(backend); | 2520 additional_backends->push_back(backend); |
2519 #endif | 2521 #endif |
2520 | 2522 |
2521 additional_backends->push_back( | 2523 additional_backends->push_back( |
2522 new sync_file_system::SyncFileSystemBackend( | 2524 new sync_file_system::SyncFileSystemBackend( |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2678 switches::kDisableWebRtcEncryption, | 2680 switches::kDisableWebRtcEncryption, |
2679 }; | 2681 }; |
2680 to_command_line->CopySwitchesFrom(from_command_line, | 2682 to_command_line->CopySwitchesFrom(from_command_line, |
2681 kWebRtcDevSwitchNames, | 2683 kWebRtcDevSwitchNames, |
2682 arraysize(kWebRtcDevSwitchNames)); | 2684 arraysize(kWebRtcDevSwitchNames)); |
2683 } | 2685 } |
2684 } | 2686 } |
2685 #endif // defined(ENABLE_WEBRTC) | 2687 #endif // defined(ENABLE_WEBRTC) |
2686 | 2688 |
2687 } // namespace chrome | 2689 } // namespace chrome |
OLD | NEW |