Index: components/plugins/renderer/plugin_placeholder.cc |
diff --git a/components/plugins/renderer/plugin_placeholder.cc b/components/plugins/renderer/plugin_placeholder.cc |
index 7ef233d42d0279a0471df1cfab1cb6e85096989e..b44cbe989d48245185484e0bacc3a59d3c43a197 100644 |
--- a/components/plugins/renderer/plugin_placeholder.cc |
+++ b/components/plugins/renderer/plugin_placeholder.cc |
@@ -78,14 +78,14 @@ void PluginPlaceholderBase::HidePlugin() { |
if (element.hasAttribute("width") && element.hasAttribute("height")) { |
std::string width_str("width:[\\s]*"); |
width_str += element.getAttribute("width").utf8().data(); |
- if (EndsWith(width_str, "px", false)) { |
+ if (base::EndsWith(width_str, "px", false)) { |
width_str = width_str.substr(0, width_str.length() - 2); |
} |
base::TrimWhitespace(width_str, base::TRIM_TRAILING, &width_str); |
width_str += "[\\s]*px"; |
std::string height_str("height:[\\s]*"); |
height_str += element.getAttribute("height").utf8().data(); |
- if (EndsWith(height_str, "px", false)) { |
+ if (base::EndsWith(height_str, "px", false)) { |
height_str = height_str.substr(0, height_str.length() - 2); |
} |
base::TrimWhitespace(height_str, base::TRIM_TRAILING, &height_str); |