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

Unified Diff: chrome/renderer/web_apps.cc

Issue 1172753003: Move LowerCaseEqualsASCII to base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util
Patch Set: 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/webstore_bindings.cc ('k') | chrome/test/chromedriver/element_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/web_apps.cc
diff --git a/chrome/renderer/web_apps.cc b/chrome/renderer/web_apps.cc
index 6032524dfe4528c31397b1f66f09a606a7fb11ba..5b3e2ebc3b7f94361306469362757eb9a9d98a86 100644
--- a/chrome/renderer/web_apps.cc
+++ b/chrome/renderer/web_apps.cc
@@ -152,11 +152,11 @@ void ParseWebAppFromWebDocument(WebFrame* frame,
bool bookmark_apps_enabled = !base::CommandLine::ForCurrentProcess()->
HasSwitch(switches::kDisableNewBookmarkApps);
#endif
- if (LowerCaseEqualsASCII(rel, "icon") ||
- LowerCaseEqualsASCII(rel, "shortcut icon") ||
+ if (base::LowerCaseEqualsASCII(rel, "icon") ||
+ base::LowerCaseEqualsASCII(rel, "shortcut icon") ||
(bookmark_apps_enabled &&
- (LowerCaseEqualsASCII(rel, "apple-touch-icon") ||
- LowerCaseEqualsASCII(rel, "apple-touch-icon-precomposed")))) {
+ (base::LowerCaseEqualsASCII(rel, "apple-touch-icon") ||
+ base::LowerCaseEqualsASCII(rel, "apple-touch-icon-precomposed")))) {
AddInstallIcon(elem, &app_info->icons);
}
} else if (elem.hasHTMLTagName("meta") && elem.hasAttribute("name")) {
@@ -173,10 +173,10 @@ void ParseWebAppFromWebDocument(WebFrame* frame,
if (!app_info->app_url.is_valid())
app_info->app_url = GURL();
} else if (name == "mobile-web-app-capable" &&
- LowerCaseEqualsASCII(content, "yes")) {
+ base::LowerCaseEqualsASCII(content, "yes")) {
app_info->mobile_capable = WebApplicationInfo::MOBILE_CAPABLE;
} else if (name == "apple-mobile-web-app-capable" &&
- LowerCaseEqualsASCII(content, "yes") &&
+ base::LowerCaseEqualsASCII(content, "yes") &&
app_info->mobile_capable ==
WebApplicationInfo::MOBILE_CAPABLE_UNSPECIFIED) {
app_info->mobile_capable = WebApplicationInfo::MOBILE_CAPABLE_APPLE;
« no previous file with comments | « chrome/renderer/extensions/webstore_bindings.cc ('k') | chrome/test/chromedriver/element_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698