Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: extensions/common/extension_icon_set.cc

Issue 2626923002: Make ExtensionIconSet::ContainsPath use StringPiece. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/extension_icon_set.h ('k') | extensions/common/extension_icon_set_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension_icon_set.cc
diff --git a/extensions/common/extension_icon_set.cc b/extensions/common/extension_icon_set.cc
index 421407c789d35ddf92023fd651e3c534d66aceac..45e0bd2e22c5937616102702f58d49138d779af5 100644
--- a/extensions/common/extension_icon_set.cc
+++ b/extensions/common/extension_icon_set.cc
@@ -53,11 +53,11 @@ const std::string& ExtensionIconSet::Get(int size, MatchType match_type) const {
}
}
-bool ExtensionIconSet::ContainsPath(const std::string& path) const {
+bool ExtensionIconSet::ContainsPath(base::StringPiece path) const {
return GetIconSizeFromPath(path) != 0;
}
-int ExtensionIconSet::GetIconSizeFromPath(const std::string& path) const {
+int ExtensionIconSet::GetIconSizeFromPath(base::StringPiece path) const {
if (path.empty())
return 0;
« no previous file with comments | « extensions/common/extension_icon_set.h ('k') | extensions/common/extension_icon_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698