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:
@ -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()) {
|
||||
|
Reference in New Issue
Block a user