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

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

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "third_party/mojo/src/mojo/public/cpp/environment/lib/scoped_task_track ing.h" 5 #include "mojo/public/cpp/environment/lib/scoped_task_tracking.h"
6 6
7 #include "third_party/mojo/src/mojo/public/cpp/environment/environment.h" 7 #include "mojo/public/cpp/environment/environment.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 namespace internal { 10 namespace internal {
11 11
12 ScopedTaskTracking::ScopedTaskTracking(const char* function_name, 12 ScopedTaskTracking::ScopedTaskTracking(const char* function_name,
13 const char* file_name, 13 const char* file_name,
14 int line, 14 int line,
15 const void* program_counter) 15 const void* program_counter)
16 : id_(Environment::GetDefaultTaskTracker()->StartTracking( 16 : id_(Environment::GetDefaultTaskTracker()->StartTracking(
17 function_name, 17 function_name,
(...skipping 10 matching lines...) Expand all
28 line, 28 line,
29 nullptr)) { 29 nullptr)) {
30 } 30 }
31 31
32 ScopedTaskTracking::~ScopedTaskTracking() { 32 ScopedTaskTracking::~ScopedTaskTracking() {
33 Environment::GetDefaultTaskTracker()->EndTracking(id_); 33 Environment::GetDefaultTaskTracker()->EndTracking(id_);
34 } 34 }
35 35
36 } // namespace internal 36 } // namespace internal
37 } // namespace mojo 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