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

Unified Diff: components/metrics/drive_metrics_provider_linux.cc

Issue 1254983003: Componentize DriveMetricsProvider* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review Created 5 years, 5 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 | « components/metrics/drive_metrics_provider_ios.mm ('k') | components/metrics/drive_metrics_provider_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/drive_metrics_provider_linux.cc
diff --git a/chrome/browser/metrics/drive_metrics_provider_linux.cc b/components/metrics/drive_metrics_provider_linux.cc
similarity index 94%
rename from chrome/browser/metrics/drive_metrics_provider_linux.cc
rename to components/metrics/drive_metrics_provider_linux.cc
index 93c37a037d6744f404bb977971f0836e91c80555..4655bf92e4381c495fec1b528e5d1ad91d8302c5 100644
--- a/chrome/browser/metrics/drive_metrics_provider_linux.cc
+++ b/components/metrics/drive_metrics_provider_linux.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/metrics/drive_metrics_provider.h"
+#include "components/metrics/drive_metrics_provider.h"
#include <linux/kdev_t.h> // For MAJOR()/MINOR().
#include <sys/stat.h>
@@ -17,6 +17,8 @@
#include "base/sys_info.h"
#endif
+namespace metrics {
+
namespace {
// See http://www.kernel.org/doc/Documentation/devices.txt for more info.
@@ -58,3 +60,5 @@ bool DriveMetricsProvider::HasSeekPenalty(const base::FilePath& path,
*has_seek_penalty = rotates.substr(0, 1) == "1";
return true;
}
+
+} // namespace metrics
« no previous file with comments | « components/metrics/drive_metrics_provider_ios.mm ('k') | components/metrics/drive_metrics_provider_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698