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

Unified Diff: content/renderer/manifest/manifest_parser.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
Index: content/renderer/manifest/manifest_parser.cc
diff --git a/content/renderer/manifest/manifest_parser.cc b/content/renderer/manifest/manifest_parser.cc
index 02a5c9c5bedf461464ffc68ee4fba7c45ca20170..7e2fc779717d2871027969185188d4c6efa4080c 100644
--- a/content/renderer/manifest/manifest_parser.cc
+++ b/content/renderer/manifest/manifest_parser.cc
@@ -221,13 +221,13 @@ Manifest::DisplayMode ManifestParser::ParseDisplay(
if (display.is_null())
return Manifest::DISPLAY_MODE_UNSPECIFIED;
- if (LowerCaseEqualsASCII(display.string(), "fullscreen"))
+ if (base::LowerCaseEqualsASCII(display.string(), "fullscreen"))
return Manifest::DISPLAY_MODE_FULLSCREEN;
- else if (LowerCaseEqualsASCII(display.string(), "standalone"))
+ else if (base::LowerCaseEqualsASCII(display.string(), "standalone"))
return Manifest::DISPLAY_MODE_STANDALONE;
- else if (LowerCaseEqualsASCII(display.string(), "minimal-ui"))
+ else if (base::LowerCaseEqualsASCII(display.string(), "minimal-ui"))
return Manifest::DISPLAY_MODE_MINIMAL_UI;
- else if (LowerCaseEqualsASCII(display.string(), "browser"))
+ else if (base::LowerCaseEqualsASCII(display.string(), "browser"))
return Manifest::DISPLAY_MODE_BROWSER;
else {
errors_.push_back(GetErrorPrefix() + "unknown 'display' value ignored.");
@@ -243,21 +243,25 @@ blink::WebScreenOrientationLockType ManifestParser::ParseOrientation(
if (orientation.is_null())
return blink::WebScreenOrientationLockDefault;
- if (LowerCaseEqualsASCII(orientation.string(), "any"))
+ if (base::LowerCaseEqualsASCII(orientation.string(), "any"))
return blink::WebScreenOrientationLockAny;
- else if (LowerCaseEqualsASCII(orientation.string(), "natural"))
+ else if (base::LowerCaseEqualsASCII(orientation.string(), "natural"))
return blink::WebScreenOrientationLockNatural;
- else if (LowerCaseEqualsASCII(orientation.string(), "landscape"))
+ else if (base::LowerCaseEqualsASCII(orientation.string(), "landscape"))
return blink::WebScreenOrientationLockLandscape;
- else if (LowerCaseEqualsASCII(orientation.string(), "landscape-primary"))
+ else if (base::LowerCaseEqualsASCII(orientation.string(),
+ "landscape-primary"))
return blink::WebScreenOrientationLockLandscapePrimary;
- else if (LowerCaseEqualsASCII(orientation.string(), "landscape-secondary"))
+ else if (base::LowerCaseEqualsASCII(orientation.string(),
+ "landscape-secondary"))
return blink::WebScreenOrientationLockLandscapeSecondary;
- else if (LowerCaseEqualsASCII(orientation.string(), "portrait"))
+ else if (base::LowerCaseEqualsASCII(orientation.string(), "portrait"))
return blink::WebScreenOrientationLockPortrait;
- else if (LowerCaseEqualsASCII(orientation.string(), "portrait-primary"))
+ else if (base::LowerCaseEqualsASCII(orientation.string(),
+ "portrait-primary"))
return blink::WebScreenOrientationLockPortraitPrimary;
- else if (LowerCaseEqualsASCII(orientation.string(), "portrait-secondary"))
+ else if (base::LowerCaseEqualsASCII(orientation.string(),
+ "portrait-secondary"))
return blink::WebScreenOrientationLockPortraitSecondary;
else {
errors_.push_back(GetErrorPrefix() +
« no previous file with comments | « content/renderer/fetchers/resource_fetcher_impl.cc ('k') | content/renderer/media/user_media_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698