| Index: chrome/browser/extensions/api/file_system/file_system_api.cc
|
| diff --git a/chrome/browser/extensions/api/file_system/file_system_api.cc b/chrome/browser/extensions/api/file_system/file_system_api.cc
|
| index b236068bae853a6b764d0d90e2f4c2fa1014b718..c43dde23ddd7a17b775cf9c786b039f4e26f551c 100644
|
| --- a/chrome/browser/extensions/api/file_system/file_system_api.cc
|
| +++ b/chrome/browser/extensions/api/file_system/file_system_api.cc
|
| @@ -146,16 +146,16 @@ bool GetFileTypesFromAcceptOption(
|
| string16* description) {
|
| std::set<FilePath::StringType> extension_set;
|
| int description_id = 0;
|
| - bool valid_type = false;
|
|
|
| if (accept_option.mime_types.get()) {
|
| std::vector<std::string>* list = accept_option.mime_types.get();
|
| + bool valid_type = false;
|
| for (std::vector<std::string>::const_iterator iter = list->begin();
|
| iter != list->end(); ++iter) {
|
| std::vector<FilePath::StringType> inner;
|
| std::string accept_type = *iter;
|
| StringToLowerASCII(&accept_type);
|
| - net::GetExtensionsForMimeType(*iter, &inner);
|
| + net::GetExtensionsForMimeType(accept_type, &inner);
|
| if (inner.empty())
|
| continue;
|
|
|
|
|