diff options
author | asvitkine <asvitkine@chromium.org> | 2015-05-07 09:27:17 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-07 16:27:50 +0000 |
commit | d0abaa302dc62c1d10c7a934f23da0d4f5dc7f35 (patch) | |
tree | e330c82849ab6455a3ac8852ee2588d2c41a4162 /base/threading/thread_local_android.cc | |
parent | 0e2478e3ed2649c07e6f244dce921dbb95fca51a (diff) | |
download | chromium_src-d0abaa302dc62c1d10c7a934f23da0d4f5dc7f35.zip chromium_src-d0abaa302dc62c1d10c7a934f23da0d4f5dc7f35.tar.gz chromium_src-d0abaa302dc62c1d10c7a934f23da0d4f5dc7f35.tar.bz2 |
Cleanup base profiler initialization code.
Given that TLS slot can't fail to initialize, remove bool return values
from initialization functions that actually can't fail.
Based off of vadimt@'s CL here:
https://codereview.chromium.org/1124493002/
BUG=456354
Review URL: https://codereview.chromium.org/1128653002
Cr-Commit-Position: refs/heads/master@{#328774}
Diffstat (limited to 'base/threading/thread_local_android.cc')
-rw-r--r-- | base/threading/thread_local_android.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/base/threading/thread_local_android.cc b/base/threading/thread_local_android.cc index c890237..813dd78 100644 --- a/base/threading/thread_local_android.cc +++ b/base/threading/thread_local_android.cc @@ -4,15 +4,12 @@ #include "base/threading/thread_local.h" -#include "base/logging.h" - namespace base { namespace internal { // static void ThreadLocalPlatform::AllocateSlot(SlotType* slot) { - bool succeed = slot->Initialize(NULL); - CHECK(succeed); + slot->Initialize(nullptr); } // static |