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

Unified Diff: components/language_usage_metrics/language_usage_metrics.cc

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.cc
diff --git a/chrome/browser/language_usage_metrics.cc b/components/language_usage_metrics/language_usage_metrics.cc
similarity index 93%
rename from chrome/browser/language_usage_metrics.cc
rename to components/language_usage_metrics/language_usage_metrics.cc
index 62ed43c4dba0a5de25316cc095c5f291f41cb15d..6ecdd7b8b12a5e6c826c029f38a96d60529d7b7a 100644
--- a/chrome/browser/language_usage_metrics.cc
+++ b/components/language_usage_metrics/language_usage_metrics.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/language_usage_metrics.h"
+#include "components/language_usage_metrics/language_usage_metrics.h"
#include <algorithm>
@@ -17,6 +17,8 @@ void RecordAcceptLanguage(int language_code) {
}
} // namespace
+namespace language_usage_metrics {
+
// static
void LanguageUsageMetrics::RecordAcceptLanguages(
const std::string& accept_languages) {
@@ -69,3 +71,5 @@ void LanguageUsageMetrics::ParseAcceptLanguages(
languages->insert(language_code);
}
}
+
+} // namespace language_usage_metrics

Powered by Google App Engine
This is Rietveld 408576698