| 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 <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1451 file_system_api::ConsentProviderDelegate consent_provider_delegate( | 1451 file_system_api::ConsentProviderDelegate consent_provider_delegate( |
| 1452 chrome_details_.GetProfile(), render_frame_host()); | 1452 chrome_details_.GetProfile(), render_frame_host()); |
| 1453 file_system_api::ConsentProvider consent_provider(&consent_provider_delegate); | 1453 file_system_api::ConsentProvider consent_provider(&consent_provider_delegate); |
| 1454 | 1454 |
| 1455 if (!consent_provider.IsGrantable(*extension())) | 1455 if (!consent_provider.IsGrantable(*extension())) |
| 1456 return RespondNow(Error(kNotSupportedOnNonKioskSessionError)); | 1456 return RespondNow(Error(kNotSupportedOnNonKioskSessionError)); |
| 1457 using api::file_system::Volume; | 1457 using api::file_system::Volume; |
| 1458 std::vector<linked_ptr<Volume>> result_volume_list; | 1458 std::vector<linked_ptr<Volume>> result_volume_list; |
| 1459 FillVolumeList(chrome_details_.GetProfile(), &result_volume_list); | 1459 FillVolumeList(chrome_details_.GetProfile(), &result_volume_list); |
| 1460 | 1460 |
| 1461 return RespondNow( | 1461 return RespondNow(ArgumentList( |
| 1462 ArgumentList(api::file_system::GetVolumeList::Results::Create( | 1462 api::file_system::GetVolumeList::Results::Create(result_volume_list))); |
| 1463 result_volume_list).Pass())); | |
| 1464 } | 1463 } |
| 1465 #endif | 1464 #endif |
| 1466 | 1465 |
| 1467 } // namespace extensions | 1466 } // namespace extensions |
| OLD | NEW |