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

Unified Diff: chrome/common/translate/translate_common_metrics.h

Issue 18911002: Move language detection to chrome/common/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 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
Index: chrome/common/translate/translate_common_metrics.h
diff --git a/chrome/renderer/translate/translate_helper_metrics.h b/chrome/common/translate/translate_common_metrics.h
similarity index 92%
rename from chrome/renderer/translate/translate_helper_metrics.h
rename to chrome/common/translate/translate_common_metrics.h
index cd0050ffb2b22471e4d7a866b2c68d3b79e6346d..cfd6b1480d7e033a91885fa4e3f313bf3475212f 100644
--- a/chrome/renderer/translate/translate_helper_metrics.h
+++ b/chrome/common/translate/translate_common_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_RENDERER_TRANSLATE_TRANSLATE_HELPER_METRICS_H_
-#define CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_METRICS_H_
+#ifndef CHROME_COMMON_TRANSLATE_TRANSLATE_COMMON_METRICS_H_
+#define CHROME_COMMON_TRANSLATE_TRANSLATE_COMMON_METRICS_H_
#include <string>
#include "base/time/time.h"
-namespace TranslateHelperMetrics {
+namespace TranslateCommonMetrics {
// An indexing type to query each UMA entry name via GetMetricsName() function.
// Note: |kMetricsEntries| should be updated when a new entry is added here.
@@ -103,6 +103,6 @@ void ReportSimilarLanguageMatch(bool match);
// Gets UMA name for an entry specified by |index|.
const char* GetMetricsName(MetricsNameIndex index);
-} // namespace TranslateHelperMetrics
+} // namespace TranslateCommonMetrics
-#endif // CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_METRICS_H_
+#endif // CHROME_COMMON_TRANSLATE_TRANSLATE_COMMON_METRICS_H_
« no previous file with comments | « chrome/common/translate/language_detection_util_unittest.cc ('k') | chrome/common/translate/translate_common_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698