Clean up locale_utils to use base::StringPiece.
This cleanup CL changes no functionality, it just cleans up some functions in components/language/core/common/locale_util.cc to use base::StringPiece instead of std::string where needed, as well as updating the callers of these methods accordingly. This CL also moves language::ContainsSameBaseLanguage into an anonymous namespace in the single file that it's called from. Change-Id: Ia2f8be1361b976e96aba95d78c59b88697343729 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2316811 Auto-Submit: Scott Little <sclittle@chromium.org> Commit-Queue: anthonyvd <anthonyvd@chromium.org> Reviewed-by:anthonyvd <anthonyvd@chromium.org> Reviewed-by:
Megan Jablonski <megjablon@chromium.org> Cr-Commit-Position: refs/heads/master@{#792838}
Showing
Please register or sign in to comment