Chromium Code Reviews| Index: chrome/browser/download/download_util.cc |
| diff --git a/chrome/browser/download/download_util.cc b/chrome/browser/download/download_util.cc |
| index 69dcce6c74af8b2d854cc7e9de1bba0f748c886c..280b688984ae3153a0545b69c4c8aef20ef15d31 100644 |
| --- a/chrome/browser/download/download_util.cc |
| +++ b/chrome/browser/download/download_util.cc |
| @@ -113,7 +113,7 @@ bool IsShellIntegratedExtension(const string16& extension) { |
| // See <http://www.juniper.net/security/auto/vulnerabilities/vuln2612.html>. |
| // That vulnerability report is not exactly on point, but files become magical |
| // if their end in a CLSID. Here we block extensions that look like CLSIDs. |
| - if (extension_lower.size() > 0 && extension_lower.at(0) == L'{' && |
| + if (!extension_lower.empty() && extension_lower.at(0) == L'{' && |
|
Peter Kasting
2011/03/03 19:35:53
Nit: at() -> [] (this would be another good change
|
| extension_lower.at(extension_lower.length() - 1) == L'}') |
| return true; |