diff options
Diffstat (limited to 'chrome/common/extensions/user_script.cc')
-rw-r--r-- | chrome/common/extensions/user_script.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/common/extensions/user_script.cc b/chrome/common/extensions/user_script.cc index f71de5c..b66dee94 100644 --- a/chrome/common/extensions/user_script.cc +++ b/chrome/common/extensions/user_script.cc @@ -79,17 +79,17 @@ void UserScript::add_url_pattern(const URLPattern& pattern) { void UserScript::clear_url_patterns() { url_patterns_.clear(); } bool UserScript::MatchesUrl(const GURL& url) const { - if (url_patterns_.size() > 0) { + if (!url_patterns_.empty()) { if (!UrlMatchesPatterns(&url_patterns_, url)) return false; } - if (globs_.size() > 0) { + if (!globs_.empty()) { if (!UrlMatchesGlobs(&globs_, url)) return false; } - if (exclude_globs_.size() > 0) { + if (!exclude_globs_.empty()) { if (UrlMatchesGlobs(&exclude_globs_, url)) return false; } |