summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/user_script_master.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/user_script_master.cc')
-rw-r--r--chrome/browser/extensions/user_script_master.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/user_script_master.cc b/chrome/browser/extensions/user_script_master.cc
index 317a2d5..eae62b4 100644
--- a/chrome/browser/extensions/user_script_master.cc
+++ b/chrome/browser/extensions/user_script_master.cc
@@ -35,7 +35,7 @@ static bool GetDeclarationValue(const base::StringPiece& line,
std::string temp(line.data() + index + prefix.length(),
line.length() - index - prefix.length());
- if (temp.size() == 0 || !IsWhitespace(temp[0]))
+ if (temp.empty() || !IsWhitespace(temp[0]))
return false;
TrimWhitespaceASCII(temp, TRIM_ALL, value);
@@ -125,7 +125,7 @@ bool UserScriptMaster::ScriptReloader::ParseMetadataHeader(
// If no patterns were specified, default to @include *. This is what
// Greasemonkey does.
- if (script->globs().size() == 0 && script->url_patterns().size() == 0)
+ if (script->globs().empty() && script->url_patterns().empty())
script->add_glob("*");
return true;