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

Unified Diff: chrome/common/extensions/api/file_system_provider_capabilities/file_system_provider_capabilities_handler.cc

Issue 1221093002: Add support for refreshing contents of providers which don't support watchers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/file_system_provider_capabilities/file_system_provider_capabilities_handler.cc
diff --git a/chrome/common/extensions/api/file_system_provider_capabilities/file_system_provider_capabilities_handler.cc b/chrome/common/extensions/api/file_system_provider_capabilities/file_system_provider_capabilities_handler.cc
index d959ad725e863d39f24e72df7cd3f8f5f3907da3..308aa8c1027451367c82b84853cb48e0d0538015 100644
--- a/chrome/common/extensions/api/file_system_provider_capabilities/file_system_provider_capabilities_handler.cc
+++ b/chrome/common/extensions/api/file_system_provider_capabilities/file_system_provider_capabilities_handler.cc
@@ -16,14 +16,19 @@
namespace extensions {
FileSystemProviderCapabilities::FileSystemProviderCapabilities()
- : configurable_(false), multiple_mounts_(false), source_(SOURCE_FILE) {
+ : configurable_(false),
+ watchable_(false),
+ multiple_mounts_(false),
+ source_(SOURCE_FILE) {
}
FileSystemProviderCapabilities::FileSystemProviderCapabilities(
bool configurable,
+ bool watchable,
bool multiple_mounts,
FileSystemProviderSource source)
: configurable_(configurable),
+ watchable_(watchable),
multiple_mounts_(multiple_mounts),
source_(source) {
}
@@ -99,6 +104,8 @@ bool FileSystemProviderCapabilitiesHandler::Parse(Extension* extension,
idl_capabilities.configurable.get()
? *idl_capabilities.configurable.get()
: false /* false by default */,
+ idl_capabilities.watchable.get() ? *idl_capabilities.watchable.get()
+ : false /* false by default */,
idl_capabilities.multiple_mounts.get()
? *idl_capabilities.multiple_mounts.get()
: false /* false by default */,

Powered by Google App Engine
This is Rietveld 408576698