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

Unified Diff: Source/core/fileapi/File.h

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. Created 6 years, 5 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: Source/core/fileapi/File.h
diff --git a/Source/core/fileapi/File.h b/Source/core/fileapi/File.h
index 4b9dec71c66de90cf108a1a11501062b3db609a7..61891563658d8f1d49c6edee18be897e62128058 100644
--- a/Source/core/fileapi/File.h
+++ b/Source/core/fileapi/File.h
@@ -126,7 +126,7 @@ private:
void invalidateSnapshotMetadata() { m_snapshotSize = -1; }
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
bool hasValidFileSystemURL() const { return hasBackingFile(); }
// Instances not backed by a file must have an empty path set.
bool hasValidFilePath() const { return hasBackingFile() || m_path.isEmpty(); }

Powered by Google App Engine
This is Rietveld 408576698