| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 extension_set.insert(*iter); | 189 extension_set.insert(*iter); |
| 190 #endif | 190 #endif |
| 191 } | 191 } |
| 192 } | 192 } |
| 193 | 193 |
| 194 extensions->assign(extension_set.begin(), extension_set.end()); | 194 extensions->assign(extension_set.begin(), extension_set.end()); |
| 195 if (extensions->empty()) | 195 if (extensions->empty()) |
| 196 return false; | 196 return false; |
| 197 | 197 |
| 198 if (accept_option.description.get()) | 198 if (accept_option.description.get()) |
| 199 *description = base::UTF8ToUTF16(*accept_option.description.get()); | 199 *description = base::UTF8ToUTF16(*accept_option.description); |
| 200 else if (description_id) | 200 else if (description_id) |
| 201 *description = l10n_util::GetStringUTF16(description_id); | 201 *description = l10n_util::GetStringUTF16(description_id); |
| 202 | 202 |
| 203 return true; | 203 return true; |
| 204 } | 204 } |
| 205 | 205 |
| 206 // Key for the path of the directory of the file last chosen by the user in | 206 // Key for the path of the directory of the file last chosen by the user in |
| 207 // response to a chrome.fileSystem.chooseEntry() call. | 207 // response to a chrome.fileSystem.chooseEntry() call. |
| 208 const char kLastChooseEntryDirectory[] = "last_choose_file_directory"; | 208 const char kLastChooseEntryDirectory[] = "last_choose_file_directory"; |
| 209 | 209 |
| (...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1448 return RespondNow(Error(kNotSupportedOnNonKioskSessionError)); | 1448 return RespondNow(Error(kNotSupportedOnNonKioskSessionError)); |
| 1449 std::vector<api::file_system::Volume> result_volume_list; | 1449 std::vector<api::file_system::Volume> result_volume_list; |
| 1450 FillVolumeList(chrome_details_.GetProfile(), &result_volume_list); | 1450 FillVolumeList(chrome_details_.GetProfile(), &result_volume_list); |
| 1451 | 1451 |
| 1452 return RespondNow(ArgumentList( | 1452 return RespondNow(ArgumentList( |
| 1453 api::file_system::GetVolumeList::Results::Create(result_volume_list))); | 1453 api::file_system::GetVolumeList::Results::Create(result_volume_list))); |
| 1454 } | 1454 } |
| 1455 #endif | 1455 #endif |
| 1456 | 1456 |
| 1457 } // namespace extensions | 1457 } // namespace extensions |
| OLD | NEW |