Index: chrome/installer/util/shell_util.cc |
diff --git a/chrome/installer/util/shell_util.cc b/chrome/installer/util/shell_util.cc |
index 10a968ba22091af318515d1f0b65b1d73a5cca37..93971ea0531bd314fe700c4bc8333524e57ab915 100644 |
--- a/chrome/installer/util/shell_util.cc |
+++ b/chrome/installer/util/shell_util.cc |
@@ -1147,11 +1147,11 @@ ShellUtil::DefaultState ProbeProtocolHandlers( |
const base::FilePath& chrome_exe, |
const wchar_t* const* protocols, |
size_t num_protocols) { |
+#if DCHECK_IS_ON |
DCHECK(!num_protocols || protocols); |
- if (DCHECK_IS_ON()) { |
- for (size_t i = 0; i < num_protocols; ++i) |
- DCHECK(protocols[i] && *protocols[i]); |
- } |
+ for (size_t i = 0; i < num_protocols; ++i) |
+ DCHECK(protocols[i] && *protocols[i]); |
+#endif |
const base::win::Version windows_version = base::win::GetVersion(); |