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

Unified Diff: third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp

Issue 2552233002: Make ifdefs consistent in WebKit/Source/platform (Closed)
Patch Set: Created 4 years 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/platform/WebThreadSupportingGC.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp
diff --git a/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp b/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp
index 32bf96b1b8425497b5cc4b87210b3d63bffd6344..93c0bd6964aafaf9eccd93d8babc0004e0751f8e 100644
--- a/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp
+++ b/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp
@@ -193,8 +193,10 @@ Referrer SecurityPolicy::generateReferrer(ReferrerPolicy referrerPolicy,
void SecurityPolicy::addOriginTrustworthyWhiteList(
PassRefPtr<SecurityOrigin> origin) {
+#if DCHECK_IS_ON()
// Must be called before we start other threads.
- ASSERT(WTF::isBeforeThreadCreated());
+ DCHECK(WTF::isBeforeThreadCreated());
+#endif
if (origin->isUnique())
return;
trustworthyOriginSet().add(origin->toRawString());
« no previous file with comments | « third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698