| Index: net/base/filename_util.cc
|
| diff --git a/net/base/filename_util.cc b/net/base/filename_util.cc
|
| index 153ce43d024882f3d48d62fb1c338930a7d50ee1..1e1d51c0e247709b479a2c44095c7ac117bd4176 100644
|
| --- a/net/base/filename_util.cc
|
| +++ b/net/base/filename_util.cc
|
| @@ -174,8 +174,10 @@ bool IsReservedNameOnWindows(const base::FilePath::StringType& filename) {
|
| if (filename_lower == known_devices[i])
|
| return true;
|
| // Starts with "DEVICE.".
|
| - if (filename_lower.find(std::string(known_devices[i]) + ".") == 0)
|
| + if (base::StartsWith(filename_lower, std::string(known_devices[i]) + ".",
|
| + base::CompareCase::SENSITIVE)) {
|
| return true;
|
| + }
|
| }
|
|
|
| static const char* const magic_names[] = {
|
|
|