0

Using "static_assert" in lieu of "COMPILE_ASSERT" in storage module

All our toolchains support c++'s static_assert now- COMPILE_ASSERT can be removed now.

BUG=442514

Review URL: https://codereview.chromium.org/809553005

Cr-Commit-Position: refs/heads/master@{#312553}
This commit is contained in:
anujk.sharma
2015-01-21 19:25:41 -08:00
committed by Commit bot
parent e3a24e9786
commit 4bd5ab2bd1

@ -64,9 +64,9 @@ class TaskRunnerBoundObserverList {
// If we're already on the runner this just dispatches the method.
template <class Method, class Params>
void Notify(Method method, const Params& params) const {
COMPILE_ASSERT(
static_assert(
(base::internal::ParamsUseScopedRefptrCorrectly<Params>::value),
badunboundmethodparams);
"bad unbound method params");
for (typename ObserversListMap::const_iterator it = observers_.begin();
it != observers_.end(); ++it) {
if (!it->second.get() || it->second->RunsTasksOnCurrentThread()) {