OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/chromeos/extensions/file_manager/private_api_misc.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_misc.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/frame/frame_util.h" | 10 #include "ash/frame/frame_util.h" |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 service->GetProvidingExtensionInfoList(); | 429 service->GetProvidingExtensionInfoList(); |
430 | 430 |
431 using api::file_manager_private::ProvidingExtension; | 431 using api::file_manager_private::ProvidingExtension; |
432 std::vector<linked_ptr<ProvidingExtension>> providing_extensions; | 432 std::vector<linked_ptr<ProvidingExtension>> providing_extensions; |
433 for (const auto& info : info_list) { | 433 for (const auto& info : info_list) { |
434 const linked_ptr<ProvidingExtension> providing_extension( | 434 const linked_ptr<ProvidingExtension> providing_extension( |
435 new ProvidingExtension); | 435 new ProvidingExtension); |
436 providing_extension->extension_id = info.extension_id; | 436 providing_extension->extension_id = info.extension_id; |
437 providing_extension->name = info.name; | 437 providing_extension->name = info.name; |
438 providing_extension->configurable = info.capabilities.configurable(); | 438 providing_extension->configurable = info.capabilities.configurable(); |
| 439 providing_extension->watchable = info.capabilities.watchable(); |
439 providing_extension->multiple_mounts = info.capabilities.multiple_mounts(); | 440 providing_extension->multiple_mounts = info.capabilities.multiple_mounts(); |
440 switch (info.capabilities.source()) { | 441 switch (info.capabilities.source()) { |
441 case SOURCE_FILE: | 442 case SOURCE_FILE: |
442 providing_extension->source = | 443 providing_extension->source = |
443 api::manifest_types::FILE_SYSTEM_PROVIDER_SOURCE_FILE; | 444 api::manifest_types::FILE_SYSTEM_PROVIDER_SOURCE_FILE; |
444 break; | 445 break; |
445 case SOURCE_DEVICE: | 446 case SOURCE_DEVICE: |
446 providing_extension->source = | 447 providing_extension->source = |
447 api::manifest_types::FILE_SYSTEM_PROVIDER_SOURCE_DEVICE; | 448 api::manifest_types::FILE_SYSTEM_PROVIDER_SOURCE_DEVICE; |
448 break; | 449 break; |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 base::File::Error result) { | 620 base::File::Error result) { |
620 if (result != base::File::FILE_OK) { | 621 if (result != base::File::FILE_OK) { |
621 Respond(Error("Failed to execute the action.")); | 622 Respond(Error("Failed to execute the action.")); |
622 return; | 623 return; |
623 } | 624 } |
624 | 625 |
625 Respond(NoArguments()); | 626 Respond(NoArguments()); |
626 } | 627 } |
627 | 628 |
628 } // namespace extensions | 629 } // namespace extensions |
OLD | NEW |