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

Unified Diff: third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp

Issue 2083363003: Remove an unnecessary loop when converting scheme in NavigatorContentUtils (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove an unnecessary loop when converting scheme in NavigatorContentUtils Created 4 years, 6 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 | « no previous file | third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
diff --git a/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp b/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
index 8373c5d194c075ced04cde02449323544fe940b6..ccb2d8fc30b5046ec9fe023c268623bb4917876f 100644
--- a/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
+++ b/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
@@ -107,9 +107,7 @@ static bool isSchemeWhitelisted(const String& scheme)
initCustomSchemeHandlerWhitelist();
StringBuilder builder;
- unsigned length = scheme.length();
- for (unsigned i = 0; i < length; ++i)
- builder.append(toASCIILower(scheme[i]));
+ builder.append(scheme.lower().ascii().data());
return schemeWhitelist->contains(builder.toString());
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698