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

Unified Diff: components/translate/common/translate_metrics.h

Issue 25531002: Move language detection to a component (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Run translate unittests on iOS Created 7 years, 2 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/translate/common/translate_metrics.h
diff --git a/chrome/common/translate/translate_common_metrics.h b/components/translate/common/translate_metrics.h
similarity index 92%
rename from chrome/common/translate/translate_common_metrics.h
rename to components/translate/common/translate_metrics.h
index 0faed7f72f36a1aec003e22a7d13fc07728a198d..9baa268aa1d7db458b7dc1056291c8eb464f1f06 100644
--- a/chrome/common/translate/translate_common_metrics.h
+++ b/components/translate/common/translate_metrics.h
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_COMMON_TRANSLATE_TRANSLATE_COMMON_METRICS_H_
-#define CHROME_COMMON_TRANSLATE_TRANSLATE_COMMON_METRICS_H_
+#ifndef COMPONENTS_TRANSLATE_COMMON_TRANSLATE_METRICS_H_
+#define COMPONENTS_TRANSLATE_COMMON_TRANSLATE_METRICS_H_
#include <string>
#include "base/time/time.h"
-namespace TranslateCommonMetrics {
+namespace translate {
// An indexing type to query each UMA entry name via GetMetricsName() function.
// Note: |kMetricsEntries| should be updated when a new entry is added here.
@@ -99,6 +99,6 @@ void ReportSimilarLanguageMatch(bool match);
// Gets UMA name for an entry specified by |index|.
const char* GetMetricsName(MetricsNameIndex index);
-} // namespace TranslateCommonMetrics
+} // namespace translate
-#endif // CHROME_COMMON_TRANSLATE_TRANSLATE_COMMON_METRICS_H_
+#endif // COMPONENTS_TRANSLATE_COMMON_TRANSLATE_METRICS_H_
« no previous file with comments | « components/translate/common/translate_constants.cc ('k') | components/translate/common/translate_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698