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

Side by Side Diff: third_party/WebKit/Source/core/loader/HttpEquiv.cpp

Issue 2615953003: Rename IGNORE_EXCEPTION to IGNORE_EXCEPTION_FOR_TESTING (Closed)
Patch Set: temp Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/loader/HttpEquiv.h" 5 #include "core/loader/HttpEquiv.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/dom/ScriptableDocumentParser.h" 8 #include "core/dom/ScriptableDocumentParser.h"
9 #include "core/dom/StyleEngine.h" 9 #include "core/dom/StyleEngine.h"
10 #include "core/fetch/ClientHintsPreferences.h" 10 #include "core/fetch/ClientHintsPreferences.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 UseCounter::count(document, UseCounter::MetaSetCookie); 124 UseCounter::count(document, UseCounter::MetaSetCookie);
125 if (!document.contentSecurityPolicy()->allowInlineScript( 125 if (!document.contentSecurityPolicy()->allowInlineScript(
126 element, KURL(), "", OrdinalNumber(), "", 126 element, KURL(), "", OrdinalNumber(), "",
127 ContentSecurityPolicy::SuppressReport)) { 127 ContentSecurityPolicy::SuppressReport)) {
128 UseCounter::count(document, 128 UseCounter::count(document,
129 UseCounter::MetaSetCookieWhenCSPBlocksInlineScript); 129 UseCounter::MetaSetCookieWhenCSPBlocksInlineScript);
130 } 130 }
131 131
132 // Exception (for sandboxed documents) ignored. 132 // Exception (for sandboxed documents) ignored.
133 document.setCookie(content, IGNORE_EXCEPTION); 133 document.setCookie(content, IGNORE_EXCEPTION_FOR_TESTING);
134 } 134 }
135 135
136 } // namespace blink 136 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698