| 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 0212e1113603514ee0670006c2a3f71c093c8ec0..5b27f1019ab286700e79dd1abbbececbc51b89b9 100644
|
| --- a/chrome/browser/media_galleries/fileapi/media_path_filter.cc
|
| +++ b/chrome/browser/media_galleries/fileapi/media_path_filter.cc
|
| @@ -126,15 +126,12 @@ bool MediaPathFilter::ShouldSkip(const base::FilePath& path) {
|
| const char win_98_recycle_bin_name[] = "RECYCLED";
|
| const char win_xp_recycle_bin_name[] = "RECYCLER";
|
| const char win_vista_recycle_bin_name[] = "$Recycle.bin";
|
| - if ((base::strncasecmp(base_name.c_str(),
|
| - win_98_recycle_bin_name,
|
| - strlen(win_98_recycle_bin_name)) == 0) ||
|
| - (base::strncasecmp(base_name.c_str(),
|
| - win_xp_recycle_bin_name,
|
| - strlen(win_xp_recycle_bin_name)) == 0) ||
|
| - (base::strncasecmp(base_name.c_str(),
|
| - win_vista_recycle_bin_name,
|
| - strlen(win_vista_recycle_bin_name)) == 0))
|
| + if (base::StartsWith(base_name, win_98_recycle_bin_name,
|
| + base::CompareCase::INSENSITIVE_ASCII) ||
|
| + base::StartsWith(base_name, win_xp_recycle_bin_name,
|
| + base::CompareCase::INSENSITIVE_ASCII) ||
|
| + base::StartsWith(base_name, win_vista_recycle_bin_name,
|
| + base::CompareCase::INSENSITIVE_ASCII))
|
| return true;
|
| #endif // defined(OS_WIN)
|
| return false;
|
|
|