Provide a way to log events on chrome://safe-browsing |
||||
Issue description
Something like:
CRSBLOG(1) << "This is a log: " << *this;
or even:
CRSBLOG(1, "This is a log");
or even just:
CRSBLOG("This is a log");
This would be really useful in debugging and testing.
Please make sure it works for Android too.
,
Aug 21
,
Aug 21
Modify this to be a no-op when no chrome://safe-browsing tab is open. This will make it more like LOG, which only evaluates the streamed arguments when the conditions to log are met (verbosity, debug, etc.)
,
Aug 27
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/ad7fea06d6ef8c2f6c5002712f18e49142b09312 commit ad7fea06d6ef8c2f6c5002712f18e49142b09312 Author: Daniel Rubery <drubery@chromium.org> Date: Mon Aug 27 18:54:54 2018 Add conditional evaluation to CRSBLOG LOG doesn't even evaluate the streamed arguments if the conditions for logging aren't met (verbosity, debug, etc.) Now CRSBLOG does the same, so that CRSBLOG << Function() is a noop if there are no listening chrome://safe-browsing tabs. Bug: 874693 Change-Id: I6e1316b280b87264e65cb789151cff8596eb380a Reviewed-on: https://chromium-review.googlesource.com/1187008 Commit-Queue: Daniel Rubery <drubery@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Reviewed-by: Varun Khaneja <vakh@chromium.org> Cr-Commit-Position: refs/heads/master@{#586346} [modify] https://crrev.com/ad7fea06d6ef8c2f6c5002712f18e49142b09312/components/BUILD.gn [modify] https://crrev.com/ad7fea06d6ef8c2f6c5002712f18e49142b09312/components/safe_browsing/DEPS [modify] https://crrev.com/ad7fea06d6ef8c2f6c5002712f18e49142b09312/components/safe_browsing/web_ui/BUILD.gn [modify] https://crrev.com/ad7fea06d6ef8c2f6c5002712f18e49142b09312/components/safe_browsing/web_ui/safe_browsing_ui.cc [modify] https://crrev.com/ad7fea06d6ef8c2f6c5002712f18e49142b09312/components/safe_browsing/web_ui/safe_browsing_ui.h [add] https://crrev.com/ad7fea06d6ef8c2f6c5002712f18e49142b09312/components/safe_browsing/web_ui/safe_browsing_ui_unittest.cc
,
Aug 28
|
||||
►
Sign in to add a comment |
||||
Comment 1 by bugdroid1@chromium.org
, Aug 21