Bug 934445 - Fix Windows linking error in Release mode only when MOZ_CONTENT_SANDBOX is defined. r=aklotz
authorBrian R. Bondy <netzen@gmail.com>
Mon, 04 Nov 2013 15:35:03 -0500
changeset 153375 0777f32920b906b6ca9b9b22029cab1f88d3166c
parent 153374 8ea700f048c423bf4c830fc693ddd478e023a115
child 153376 e77d96c4bfeee14770789d531c64578907ee6391
push id35792
push userbbondy@mozilla.com
push dateMon, 04 Nov 2013 20:35:28 +0000
treeherdermozilla-inbound@0777f32920b9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaklotz
bugs934445
milestone28.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 934445 - Fix Windows linking error in Release mode only when MOZ_CONTENT_SANDBOX is defined. r=aklotz
security/sandbox/base/shim/base/logging.cpp
--- a/security/sandbox/base/shim/base/logging.cpp
+++ b/security/sandbox/base/shim/base/logging.cpp
@@ -11,16 +11,22 @@
 
 namespace {
 int min_log_level = 0;
 }
 
 namespace logging
 {
 
+DcheckState g_dcheck_state = DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS;
+
+DcheckState get_dcheck_state() {
+  return g_dcheck_state;
+}
+
 LogMessage::LogMessage(const char* file, int line, LogSeverity severity,
                        int ctr) :
   line_(line)
 {
 }
 
 LogMessage::LogMessage(const char* file, int line, int ctr) : line_(line)
 {