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

Unified Diff: chrome/renderer/extensions/extension_localization_peer.cc

Issue 1172183002: Move StartsWith[ASCII] to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util3
Patch Set: merger Created 5 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 | « chrome/renderer/extensions/app_bindings.cc ('k') | chrome/renderer/extensions/webstore_bindings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/extension_localization_peer.cc
diff --git a/chrome/renderer/extensions/extension_localization_peer.cc b/chrome/renderer/extensions/extension_localization_peer.cc
index 7208c2af44608ac6f55a39d7603eee2506deb91f..17b9756a51df215fafec51072bd8788e3d6c37d5 100644
--- a/chrome/renderer/extensions/extension_localization_peer.cc
+++ b/chrome/renderer/extensions/extension_localization_peer.cc
@@ -55,8 +55,9 @@ ExtensionLocalizationPeer::CreateExtensionLocalizationPeer(
// Return NULL if content is not text/css or it doesn't belong to extension
// scheme.
return (request_url.SchemeIs(extensions::kExtensionScheme) &&
- StartsWithASCII(mime_type, "text/css", false)) ?
- new ExtensionLocalizationPeer(peer, message_sender, request_url) : NULL;
+ base::StartsWithASCII(mime_type, "text/css", false))
+ ? new ExtensionLocalizationPeer(peer, message_sender, request_url)
+ : NULL;
}
void ExtensionLocalizationPeer::OnUploadProgress(
« no previous file with comments | « chrome/renderer/extensions/app_bindings.cc ('k') | chrome/renderer/extensions/webstore_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698