| Index: base/profiler/scoped_tracker.cc
|
| diff --git a/base/profiler/scoped_tracker.cc b/base/profiler/scoped_tracker.cc
|
| index 26b17c015539b043d6b5c981b7a3c802587c7723..d15b7de6dcd2d3d6763d6395f2f471b79c210092 100644
|
| --- a/base/profiler/scoped_tracker.cc
|
| +++ b/base/profiler/scoped_tracker.cc
|
| @@ -12,13 +12,6 @@ namespace {
|
|
|
| ScopedProfile::Mode g_scoped_profile_mode = ScopedProfile::DISABLED;
|
|
|
| -// Executes |callback|, augmenting it with provided |location|.
|
| -void ExecuteAndTrackCallback(const Location& location,
|
| - const base::Closure& callback) {
|
| - ScopedProfile tracking_profile(location, ScopedProfile::ENABLED);
|
| - callback.Run();
|
| -}
|
| -
|
| } // namespace
|
|
|
| // static
|
| @@ -26,15 +19,6 @@ void ScopedTracker::Enable() {
|
| g_scoped_profile_mode = ScopedProfile::ENABLED;
|
| }
|
|
|
| -// static
|
| -base::Closure ScopedTracker::TrackCallback(const Location& location,
|
| - const base::Closure& callback) {
|
| - if (g_scoped_profile_mode != ScopedProfile::ENABLED)
|
| - return callback;
|
| -
|
| - return base::Bind(ExecuteAndTrackCallback, location, callback);
|
| -}
|
| -
|
| ScopedTracker::ScopedTracker(const Location& location)
|
| : scoped_profile_(location, g_scoped_profile_mode) {
|
| }
|
|
|