Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: ppapi/tests/test_utils.h

Issue 8885012: Replace PP_ALLOW_THIS_IN_INITIALIZER_LIST macro (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revise Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/tests/test_transport.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_utils.h
diff --git a/ppapi/tests/test_utils.h b/ppapi/tests/test_utils.h
index c2d920745b7c428984557aedc3523626700df051..8cfd2ddd5c561c10534c3d12b1eccfe62cba1492 100644
--- a/ppapi/tests/test_utils.h
+++ b/ppapi/tests/test_utils.h
@@ -79,20 +79,4 @@ class TestCompletionCallback {
#define PPAPI_POSIX 1
#endif
-// This is roughly copied from base/compiler_specific.h, and makes it possible
-// to pass 'this' in a constructor initializer list, when you really mean it.
-//
-// Example usage:
-// Foo::Foo(MyInstance* instance)
-// : ALLOW_THIS_IN_INITIALIZER_LIST(callback_factory_(this)) {}
-#if defined(COMPILER_MSVC)
-#define PP_ALLOW_THIS_IN_INITIALIZER_LIST(code) \
- __pragma(warning(push)) \
- __pragma(warning(disable:4355)) \
- code \
- __pragma(warning(pop))
-#else
-#define PP_ALLOW_THIS_IN_INITIALIZER_LIST(code) code
-#endif
-
#endif // PPAPI_TESTS_TEST_UTILS_H_
« no previous file with comments | « ppapi/tests/test_transport.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698