summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 17:05:21 +0000
committerthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 17:05:21 +0000
commitd8d173b710f77e333a8b944c7cb16acd994f303c (patch)
tree64bce83390ae90a5230250ad3edf4788eea69821 /base
parent4f679ce44489efdebbe4bca611a2cc60cb0a6169 (diff)
downloadchromium_src-d8d173b710f77e333a8b944c7cb16acd994f303c.zip
chromium_src-d8d173b710f77e333a8b944c7cb16acd994f303c.tar.gz
chromium_src-d8d173b710f77e333a8b944c7cb16acd994f303c.tar.bz2
OFFICIAL_BUILD is only set in windows builds, so add some complexity to get the logging turned off the mac/linux builds as intended.
The referenced bug will stay open since this probably shouldn't be the long term fix. BUG=16512 TEST=logging shows up for debug builds, but all platforms don't have logging in official builds. Review URL: http://codereview.chromium.org/149534 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20497 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/logging.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/base/logging.h b/base/logging.h
index db7faca..c2bad4e 100644
--- a/base/logging.h
+++ b/base/logging.h
@@ -280,7 +280,11 @@ std::string* MakeCheckOpString(const int& v1,
// foo.CheckThatFoo();
// #endif
-#ifdef OFFICIAL_BUILD
+// http://crbug.com/16512 is open for a real fix for this. For now, Windows
+// uses OFFICIAL_BUILD and !Windows uses the branding flag when NDEBUG is
+// defined.
+#if ( defined(OS_WIN) && defined(OFFICIAL_BUILD)) || \
+ (!defined(OS_WIN) && defined(NDEBUG) && defined(GOOGLE_CHROME_BUILD))
// We want to have optimized code for an official build so we remove DLOGS and
// DCHECK from the executable.