Index: extensions/browser/user_script_loader.cc |
diff --git a/extensions/browser/user_script_loader.cc b/extensions/browser/user_script_loader.cc |
index 69ef590402adad752d719796e0d5ab7bb0192218..785e7c858ba3403decce133e313b70db127d9aa0 100644 |
--- a/extensions/browser/user_script_loader.cc |
+++ b/extensions/browser/user_script_loader.cc |
@@ -87,12 +87,12 @@ bool UserScriptLoader::ParseMetadataHeader(const base::StringPiece& script_text, |
std::string value; |
if (GetDeclarationValue(line, kIncludeDeclaration, &value)) { |
// We escape some characters that MatchPattern() considers special. |
- ReplaceSubstringsAfterOffset(&value, 0, "\\", "\\\\"); |
- ReplaceSubstringsAfterOffset(&value, 0, "?", "\\?"); |
+ base::ReplaceSubstringsAfterOffset(&value, 0, "\\", "\\\\"); |
+ base::ReplaceSubstringsAfterOffset(&value, 0, "?", "\\?"); |
script->add_glob(value); |
} else if (GetDeclarationValue(line, kExcludeDeclaration, &value)) { |
- ReplaceSubstringsAfterOffset(&value, 0, "\\", "\\\\"); |
- ReplaceSubstringsAfterOffset(&value, 0, "?", "\\?"); |
+ base::ReplaceSubstringsAfterOffset(&value, 0, "\\", "\\\\"); |
+ base::ReplaceSubstringsAfterOffset(&value, 0, "?", "\\?"); |
script->add_exclude_glob(value); |
} else if (GetDeclarationValue(line, kNamespaceDeclaration, &value)) { |
script->set_name_space(value); |