Fix 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. Review URL: https://chromiumcodereview.appspot.com/12221152 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182167 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment