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

Unified Diff: components/metrics/profiler/tracking_synchronizer.cc

Issue 577823002: Moves ProfilerMetricsProvider to //components/metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaase Created 6 years, 3 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
Index: components/metrics/profiler/tracking_synchronizer.cc
diff --git a/chrome/browser/metrics/tracking_synchronizer.cc b/components/metrics/profiler/tracking_synchronizer.cc
similarity index 97%
rename from chrome/browser/metrics/tracking_synchronizer.cc
rename to components/metrics/profiler/tracking_synchronizer.cc
index fd4505a3a63c400a1ba3789a759ff9853fba3ccb..a6ed6090b2cd5428374abbd15d219750073b1402 100644
--- a/chrome/browser/metrics/tracking_synchronizer.cc
+++ b/components/metrics/profiler/tracking_synchronizer.cc
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/metrics/tracking_synchronizer.h"
+#include "components/metrics/profiler/tracking_synchronizer.h"
#include "base/bind.h"
#include "base/metrics/histogram.h"
#include "base/threading/thread.h"
#include "base/tracked_objects.h"
-#include "chrome/browser/metrics/tracking_synchronizer_observer.h"
+#include "components/metrics/profiler/tracking_synchronizer_observer.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/profiler_controller.h"
#include "content/public/common/process_type.h"
@@ -30,12 +30,12 @@ const int kNeverUsableSequenceNumber = -2;
// calls. This object is created on the UI thread, and it is destroyed after
// all the other threads have gone away. As a result, it is ok to call it
// from the UI thread, or for about:profiler.
-static chrome_browser_metrics::TrackingSynchronizer* g_tracking_synchronizer =
+static metrics::TrackingSynchronizer* g_tracking_synchronizer =
NULL;
} // anonymous namespace
-namespace chrome_browser_metrics {
+namespace metrics {
// The "RequestContext" structure describes an individual request received
// from the UI. All methods are accessible on UI thread.
@@ -294,4 +294,4 @@ int TrackingSynchronizer::GetNextAvailableSequenceNumber() {
return last_used_sequence_number_;
}
-} // namespace chrome_browser_metrics
+} // namespace metrics
« no previous file with comments | « components/metrics/profiler/tracking_synchronizer.h ('k') | components/metrics/profiler/tracking_synchronizer_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698