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

Unified Diff: mojo/environment/default_task_tracker_impl.cc

Issue 1101303002: Update mojo sdk to rev e7270700d671fa8e458b4d8c9e47f7bcfb65da0b (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actualy provide a default TaskTracker impl Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/environment/default_task_tracker_impl.h ('k') | mojo/environment/environment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/environment/default_task_tracker_impl.cc
diff --git a/mojo/environment/default_task_tracker_impl.cc b/mojo/environment/default_task_tracker_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a53f1b9fe11d0a7a94625da440aa1d1198c6cfa3
--- /dev/null
+++ b/mojo/environment/default_task_tracker_impl.cc
@@ -0,0 +1,35 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "mojo/environment/default_task_tracker_impl.h"
+
+namespace mojo {
+namespace internal {
+namespace {
+
+TaskTrackingId StartTracking(const char* function_name,
+ const char* file_name,
+ int line_number,
+ const void* program_counter) {
+ return TaskTrackingId(0);
+}
+
+void EndTracking(const TaskTrackingId id) {
+}
+
+void SetEnabled(bool enabled) {
+}
+
+const TaskTracker kDefaultTaskTracker = {&StartTracking,
+ &EndTracking,
+ &SetEnabled};
+
+} // namespace
+
+const TaskTracker* GetDefaultTaskTracker() {
+ return &kDefaultTaskTracker;
+}
+
+} // namespace internal
+} // namespace mojo
« no previous file with comments | « mojo/environment/default_task_tracker_impl.h ('k') | mojo/environment/environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698