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

Unified Diff: content/common/plugin_list_mac.mm

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 | « content/common/appcache_interfaces.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/plugin_list_mac.mm
diff --git a/content/common/plugin_list_mac.mm b/content/common/plugin_list_mac.mm
index 8400dceb36a24a893f42cb036b9dda332dafa261..d32f1713eaf7a6d03be222a8dc298fa907870691 100644
--- a/content/common/plugin_list_mac.mm
+++ b/content/common/plugin_list_mac.mm
@@ -56,9 +56,9 @@ bool IsBlacklistedPlugin(const WebPluginInfo& info) {
// Versions of Flip4Mac 2.3 before 2.3.6 often hang the renderer, so don't
// load them.
- if (StartsWith(info.name,
- base::ASCIIToUTF16("Flip4Mac Windows Media"), false) &&
- StartsWith(info.version, base::ASCIIToUTF16("2.3"), false)) {
+ if (base::StartsWith(info.name, base::ASCIIToUTF16("Flip4Mac Windows Media"),
+ false) &&
+ base::StartsWith(info.version, base::ASCIIToUTF16("2.3"), false)) {
std::vector<base::string16> components;
base::SplitString(info.version, '.', &components);
int bugfix_version = 0;
@@ -144,7 +144,8 @@ bool ReadPlistPluginInfo(const base::FilePath& filename, CFBundleRef bundle,
// Remove PDF from the list of types handled by QuickTime, since it provides
// a worse experience than just downloading the PDF.
if (mime.mime_type == "application/pdf" &&
- StartsWithASCII(filename.BaseName().value(), "QuickTime", false)) {
+ base::StartsWithASCII(filename.BaseName().value(), "QuickTime",
+ false)) {
continue;
}
« no previous file with comments | « content/common/appcache_interfaces.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698