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

Unified Diff: third_party/WebKit/Source/core/dom/SandboxFlags.cpp

Issue 2811793004: Rename EqualIgnoringCase*() to DeprecatedEqualIgnoringCase*() (Closed)
Patch Set: Created 3 years, 8 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 | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/SandboxFlags.cpp
diff --git a/third_party/WebKit/Source/core/dom/SandboxFlags.cpp b/third_party/WebKit/Source/core/dom/SandboxFlags.cpp
index 12816e5aa451615bed3fc5d767be7575d6d5c10c..cca7772a7903b145a6f7c61e5e4d0f9626108894 100644
--- a/third_party/WebKit/Source/core/dom/SandboxFlags.cpp
+++ b/third_party/WebKit/Source/core/dom/SandboxFlags.cpp
@@ -45,30 +45,34 @@ SandboxFlags ParseSandboxPolicy(const SpaceSplitString& policy,
for (unsigned index = 0; index < length; index++) {
// Turn off the corresponding sandbox flag if it's set as "allowed".
String sandbox_token(policy[index]);
- if (EqualIgnoringCase(sandbox_token, "allow-same-origin")) {
+ if (DeprecatedEqualIgnoringCase(sandbox_token, "allow-same-origin")) {
flags &= ~kSandboxOrigin;
- } else if (EqualIgnoringCase(sandbox_token, "allow-forms")) {
+ } else if (DeprecatedEqualIgnoringCase(sandbox_token, "allow-forms")) {
flags &= ~kSandboxForms;
- } else if (EqualIgnoringCase(sandbox_token, "allow-scripts")) {
+ } else if (DeprecatedEqualIgnoringCase(sandbox_token, "allow-scripts")) {
flags &= ~kSandboxScripts;
flags &= ~kSandboxAutomaticFeatures;
- } else if (EqualIgnoringCase(sandbox_token, "allow-top-navigation")) {
+ } else if (DeprecatedEqualIgnoringCase(sandbox_token,
+ "allow-top-navigation")) {
flags &= ~kSandboxTopNavigation;
- } else if (EqualIgnoringCase(sandbox_token, "allow-popups")) {
+ } else if (DeprecatedEqualIgnoringCase(sandbox_token, "allow-popups")) {
flags &= ~kSandboxPopups;
- } else if (EqualIgnoringCase(sandbox_token, "allow-pointer-lock")) {
+ } else if (DeprecatedEqualIgnoringCase(sandbox_token,
+ "allow-pointer-lock")) {
flags &= ~kSandboxPointerLock;
- } else if (EqualIgnoringCase(sandbox_token, "allow-orientation-lock")) {
+ } else if (DeprecatedEqualIgnoringCase(sandbox_token,
+ "allow-orientation-lock")) {
flags &= ~kSandboxOrientationLock;
- } else if (EqualIgnoringCase(sandbox_token,
- "allow-popups-to-escape-sandbox")) {
+ } else if (DeprecatedEqualIgnoringCase(sandbox_token,
+ "allow-popups-to-escape-sandbox")) {
flags &= ~kSandboxPropagatesToAuxiliaryBrowsingContexts;
- } else if (EqualIgnoringCase(sandbox_token, "allow-modals")) {
+ } else if (DeprecatedEqualIgnoringCase(sandbox_token, "allow-modals")) {
flags &= ~kSandboxModals;
- } else if (EqualIgnoringCase(sandbox_token, "allow-presentation")) {
+ } else if (DeprecatedEqualIgnoringCase(sandbox_token,
+ "allow-presentation")) {
flags &= ~kSandboxPresentation;
- } else if (EqualIgnoringCase(sandbox_token,
- "allow-top-navigation-by-user-activation") &&
+ } else if (DeprecatedEqualIgnoringCase(
+ sandbox_token, "allow-top-navigation-by-user-activation") &&
RuntimeEnabledFeatures::
topNavByUserActivationInSandboxEnabled()) {
flags &= ~kSandboxTopNavigationByUserActivation;
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698