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

Unified Diff: base/compiler_specific.h

Issue 2027583002: service worker: Avoid starting up for activation during shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: maybe fix win Created 4 years, 7 months 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
Index: base/compiler_specific.h
diff --git a/base/compiler_specific.h b/base/compiler_specific.h
index 17e1f688419a8b1b8c1d104c1f3fcd5b8ddf7566..b182b030d4ab5f493068b05899bd99f7894dc6a5 100644
--- a/base/compiler_specific.h
+++ b/base/compiler_specific.h
@@ -55,8 +55,9 @@
// Note that this is intended to be used only when no access to the base class'
// static data is done through derived classes or inline methods. For more info,
// see http://msdn.microsoft.com/en-us/library/3tdb471s(VS.80).aspx
-#define NON_EXPORTED_BASE(code) MSVC_SUPPRESS_WARNING(4275) \
- code
+#define NON_EXPORTED_BASE(...) \
nhiroki 2016/06/01 05:51:47 Why do we need this change?
falken 2016/06/01 09:20:05 For some reason ServiceWorkerRegistration had to b
+ MSVC_SUPPRESS_WARNING(4275) \
+ __VA_ARGS__
#else // Not MSVC
@@ -67,7 +68,7 @@
#define MSVC_POP_WARNING()
#define MSVC_DISABLE_OPTIMIZE()
#define MSVC_ENABLE_OPTIMIZE()
-#define NON_EXPORTED_BASE(code) code
+#define NON_EXPORTED_BASE(...) __VA_ARGS__
#endif // COMPILER_MSVC

Powered by Google App Engine
This is Rietveld 408576698