Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Side by Side Diff: mojo/public/cpp/environment/lib/scoped_task_tracking.cc

Issue 1765243002: Remove Mojo bindings environment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "mojo/public/cpp/environment/lib/scoped_task_tracking.h"
6
7 #include "mojo/public/cpp/environment/environment.h"
8
9 namespace mojo {
10 namespace internal {
11
12 ScopedTaskTracking::ScopedTaskTracking(const char* function_name,
13 const char* file_name,
14 int line,
15 const void* program_counter)
16 : id_(Environment::GetDefaultTaskTracker()->StartTracking(
17 function_name,
18 file_name,
19 line,
20 program_counter)) {
21 }
22
23 ScopedTaskTracking::ScopedTaskTracking(const char* function_name,
24 const char* file_name,
25 int line)
26 : id_(Environment::GetDefaultTaskTracker()->StartTracking(function_name,
27 file_name,
28 line,
29 nullptr)) {
30 }
31
32 ScopedTaskTracking::~ScopedTaskTracking() {
33 Environment::GetDefaultTaskTracker()->EndTracking(id_);
34 }
35
36 } // namespace internal
37 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/environment/lib/scoped_task_tracking.h ('k') | mojo/public/cpp/environment/logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698