Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(624)

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc

Issue 1215533003: Add a refresh button for providers which do not support watchers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698