From ac322f81dff6cd124c0dd114c0b4e573fbab5455 Mon Sep 17 00:00:00 2001 From: tengs Date: Mon, 4 May 2015 11:25:24 -0700 Subject: Add PA_LOG() macro to for logging messages specific to Proximity Auth. This macro is built on top of the standard logging system defined in base/logging.h, but also allows us to show Proximity Auth specific logs in the debug WebUI at chrome://proximity-auth. BUG=409158 TEST=unit test Committed: https://crrev.com/dda9f80847aa2966b03a9625419fbe01c8e47192 Cr-Commit-Position: refs/heads/master@{#328026} Review URL: https://codereview.chromium.org/1113023006 Cr-Commit-Position: refs/heads/master@{#328156} --- components/proximity_auth.gypi | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'components/proximity_auth.gypi') diff --git a/components/proximity_auth.gypi b/components/proximity_auth.gypi index 38880d4..9ac28c5 100644 --- a/components/proximity_auth.gypi +++ b/components/proximity_auth.gypi @@ -13,6 +13,7 @@ '..', ], 'dependencies': [ + ':proximity_auth_logging', '../base/base.gyp:base', '../device/bluetooth/bluetooth.gyp:device_bluetooth', '../net/net.gyp:net', @@ -57,7 +58,24 @@ ], }, { - # GN version: //components/cryptauth/proto + # GN version: //components/proximity_auth/logging + 'target_name': 'proximity_auth_logging', + 'type': 'static_library', + 'include_dirs': [ + '..', + ], + 'dependencies': [ + '../base/base.gyp:base', + ], + 'sources': [ + "proximity_auth/logging/log_buffer.cc", + "proximity_auth/logging/log_buffer.h", + "proximity_auth/logging/logging.h", + "proximity_auth/logging/logging.cc", + ] + }, + { + # GN version: //components/proximity_auth/cryptauth/proto 'target_name': 'cryptauth_proto', 'type': 'static_library', 'sources': [ -- cgit v1.1