| 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/extensions/api/file_system/file_system_api.h" | 5 #include "chrome/browser/extensions/api/file_system/file_system_api.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 #if defined(OS_CHROMEOS) | 69 #if defined(OS_CHROMEOS) |
| 70 #include "base/strings/string16.h" | 70 #include "base/strings/string16.h" |
| 71 #include "base/threading/thread_task_runner_handle.h" | 71 #include "base/threading/thread_task_runner_handle.h" |
| 72 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 72 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
| 73 #include "chrome/browser/chromeos/file_manager/app_id.h" | 73 #include "chrome/browser/chromeos/file_manager/app_id.h" |
| 74 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" | 74 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" |
| 75 #include "chrome/browser/extensions/api/file_system/request_file_system_dialog_v
iew.h" | 75 #include "chrome/browser/extensions/api/file_system/request_file_system_dialog_v
iew.h" |
| 76 #include "chrome/browser/extensions/api/file_system/request_file_system_notifica
tion.h" | 76 #include "chrome/browser/extensions/api/file_system/request_file_system_notifica
tion.h" |
| 77 #include "chrome/browser/ui/simple_message_box.h" | 77 #include "chrome/browser/ui/simple_message_box.h" |
| 78 #include "components/prefs/testing_pref_service.h" | |
| 79 #include "components/user_manager/user_manager.h" | 78 #include "components/user_manager/user_manager.h" |
| 80 #include "extensions/browser/event_router.h" | 79 #include "extensions/browser/event_router.h" |
| 81 #include "extensions/browser/extension_registry.h" | 80 #include "extensions/browser/extension_registry.h" |
| 82 #include "extensions/common/constants.h" | 81 #include "extensions/common/constants.h" |
| 83 #include "extensions/common/manifest_handlers/kiosk_mode_info.h" | 82 #include "extensions/common/manifest_handlers/kiosk_mode_info.h" |
| 84 #include "url/url_constants.h" | 83 #include "url/url_constants.h" |
| 85 #endif | 84 #endif |
| 86 | 85 |
| 87 using apps::SavedFileEntry; | 86 using apps::SavedFileEntry; |
| 88 using apps::SavedFilesService; | 87 using apps::SavedFilesService; |
| (...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1448 return RespondNow(Error(kNotSupportedOnNonKioskSessionError)); | 1447 return RespondNow(Error(kNotSupportedOnNonKioskSessionError)); |
| 1449 std::vector<api::file_system::Volume> result_volume_list; | 1448 std::vector<api::file_system::Volume> result_volume_list; |
| 1450 FillVolumeList(chrome_details_.GetProfile(), &result_volume_list); | 1449 FillVolumeList(chrome_details_.GetProfile(), &result_volume_list); |
| 1451 | 1450 |
| 1452 return RespondNow(ArgumentList( | 1451 return RespondNow(ArgumentList( |
| 1453 api::file_system::GetVolumeList::Results::Create(result_volume_list))); | 1452 api::file_system::GetVolumeList::Results::Create(result_volume_list))); |
| 1454 } | 1453 } |
| 1455 #endif | 1454 #endif |
| 1456 | 1455 |
| 1457 } // namespace extensions | 1456 } // namespace extensions |
| OLD | NEW |