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

Unified Diff: components/language_usage_metrics/language_usage_metrics.h

Issue 131203002: Move LanguageUsageMetrics and TranslateBrowserMetrics to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 11 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/language_usage_metrics/language_usage_metrics.h
diff --git a/chrome/browser/language_usage_metrics.h b/components/language_usage_metrics/language_usage_metrics.h
similarity index 87%
rename from chrome/browser/language_usage_metrics.h
rename to components/language_usage_metrics/language_usage_metrics.h
index 15a6868e59a6686246a0e34a974f6f8a4ac902a2..20f70b5eae1caa0679a401284a5fcdbb6c061a07 100644
--- a/chrome/browser/language_usage_metrics.h
+++ b/components/language_usage_metrics/language_usage_metrics.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_LANGUAGE_USAGE_METRICS_H_
-#define CHROME_BROWSER_LANGUAGE_USAGE_METRICS_H_
+#ifndef COMPONENTS_LANGUAGE_USAGE_METRICS_LANGUAGE_USAGE_METRICS_H_
+#define COMPONENTS_LANGUAGE_USAGE_METRICS_LANGUAGE_USAGE_METRICS_H_
#include <set>
#include <string>
@@ -11,6 +11,8 @@
#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
+namespace language_usage_metrics {
+
// Methods to record language usage as UMA histograms.
class LanguageUsageMetrics {
public:
@@ -46,4 +48,6 @@ class LanguageUsageMetrics {
FRIEND_TEST_ALL_PREFIXES(LanguageUsageMetricsTest, ParseAcceptLanguages);
};
-#endif // CHROME_BROWSER_LANGUAGE_USAGE_METRICS_H_
+} // namespace language_usage_metrics
+
+#endif // COMPONENTS_LANGUAGE_USAGE_METRICS_LANGUAGE_USAGE_METRICS_H_
« no previous file with comments | « components/language_usage_metrics/OWNERS ('k') | components/language_usage_metrics/language_usage_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698