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/tracked_objects.h | |
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/tracked_objects.h')
-rw-r--r-- | base/tracked_objects.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/base/tracked_objects.h b/base/tracked_objects.h index efa8859..8f83794 100644 --- a/base/tracked_objects.h +++ b/base/tracked_objects.h @@ -499,14 +499,13 @@ class BASE_EXPORT ThreadData { const std::string& thread_name() const { return thread_name_; } // Initializes all statics if needed (this initialization call should be made - // while we are single threaded). Returns false if unable to initialize. - static bool Initialize(); + // while we are single threaded). + static void Initialize(); // Sets internal status_. // If |status| is false, then status_ is set to DEACTIVATED. // If |status| is true, then status_ is set to PROFILING_ACTIVE. - // If it fails to initialize the TLS slot, this function will return false. - static bool InitializeAndSetTrackingStatus(Status status); + static void InitializeAndSetTrackingStatus(Status status); static Status status(); |