Chromium Code Reviews| Index: chrome/browser/media_galleries/fileapi/media_path_filter.cc |
| diff --git a/chrome/browser/media_galleries/fileapi/media_path_filter.cc b/chrome/browser/media_galleries/fileapi/media_path_filter.cc |
| index b383db2459dbfc63f9367ca7f49ba2fea0e96198..fb6a4e4598d582f4b6387a0dafa7bdc7d84d17ee 100644 |
| --- a/chrome/browser/media_galleries/fileapi/media_path_filter.cc |
| +++ b/chrome/browser/media_galleries/fileapi/media_path_filter.cc |
| @@ -76,11 +76,11 @@ MediaPathFilter::MediaPathFilter() |
| MediaPathFilter::~MediaPathFilter() { |
| } |
| -bool MediaPathFilter::Match(const base::FilePath& path) { |
| +bool MediaPathFilter::Match(const base::FilePath::StringType& base_name) { |
|
vandebo (ex-Chrome)
2013/05/30 18:39:19
Since this method really wants a FilePath, it shou
tommycli
2013/05/30 19:35:20
Done.
|
| EnsureInitialized(); |
| return std::binary_search(media_file_extensions_.begin(), |
| media_file_extensions_.end(), |
| - StringToLowerASCII(path.Extension())); |
|
vandebo (ex-Chrome)
2013/05/30 18:39:19
I think we want to ensure that the extension is lo
tommycli
2013/05/30 19:35:20
Done.
|
| + base::FilePath(base_name).Extension()); |
| } |
| void MediaPathFilter::EnsureInitialized() { |