DescriptionFix compile breakage when using stream operators when NOTIMPLEMENTED_POLICY=5.
In logging.h, the NOTIMPLEMENTED_POLICY macro defines the behavior of the NOTIMPLEMENTED() macro. For case 5 (log only once per call-site), code that uses stream output operators would fail to compile. For example, in ui/aura/root_window_host_linux.cc:747:
NOTIMPLEMENTED() << "Unsupported bits-per-pixel " << image->bits_per_pixel;
The solution is to add EAT_STREAM_PARAMETERS to the end of the definition in base/logging.h. This will log call sites as "not implemented" but will not log the additional custom messages.
TEST=Compiled chrome with compiler define set to NOTIMPLEMENTED_POLICY=5 and ran to confirm desired NOTIMPLEMENTED() behaviors.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182167
Patch Set 1 #
Total comments: 1
Patch Set 2 : Use bool instead of counter to detect 'run once.' #Messages
Total messages: 5 (0 generated)
|