| Index: chrome/browser/translate/translate_manager_metrics.h
|
| diff --git a/chrome/browser/translate/translate_manager_metrics.h b/chrome/browser/translate/translate_manager_metrics.h
|
| deleted file mode 100644
|
| index 98ba3503d142aec9b2999c684f0bc6b90f9fe5f8..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/translate/translate_manager_metrics.h
|
| +++ /dev/null
|
| @@ -1,57 +0,0 @@
|
| -// Copyright 2013 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_MANAGER_METRICS_H_
|
| -#define CHROME_BROWSER_TRANSLATE_TRANSLATE_MANAGER_METRICS_H_
|
| -
|
| -#include <string>
|
| -
|
| -namespace TranslateManagerMetrics {
|
| -
|
| -// An indexing type to query each UMA entry name via GetMetricsName() function.
|
| -// Note: |kMetricsEntries| should be updated when a new entry is added here.
|
| -enum MetricsNameIndex {
|
| - UMA_INITIATION_STATUS,
|
| - UMA_LANGUAGE_DETECTION_ERROR,
|
| - UMA_SERVER_REPORTED_UNSUPPORTED_LANGUAGE,
|
| - UMA_UNSUPPORTED_LANGUAGE_AT_INITIATION,
|
| - UMA_MAX,
|
| -};
|
| -
|
| -// When Chrome Translate is ready to translate a page, one of following reason
|
| -// decide the next browser action.
|
| -enum InitiationStatusType {
|
| - INITIATION_STATUS_DISABLED_BY_PREFS,
|
| - INITIATION_STATUS_DISABLED_BY_SWITCH,
|
| - INITIATION_STATUS_DISABLED_BY_CONFIG,
|
| - INITIATION_STATUS_LANGUAGE_IS_NOT_SUPPORTED,
|
| - INITIATION_STATUS_URL_IS_NOT_SUPPORTED,
|
| - INITIATION_STATUS_SIMILAR_LANGUAGES,
|
| - INITIATION_STATUS_ACCEPT_LANGUAGES,
|
| -
|
| - INITIATION_STATUS_AUTO_BY_CONFIG,
|
| - INITIATION_STATUS_AUTO_BY_LINK,
|
| - INITIATION_STATUS_SHOW_INFOBAR,
|
| -
|
| - INITIATION_STATUS_MAX,
|
| -};
|
| -
|
| -// Called when Chrome Translate is initiated to report a reason of the next
|
| -// browser action.
|
| -void ReportInitiationStatus(InitiationStatusType type);
|
| -
|
| -// Called when Chrome opens the URL so that the user sends an error feedback.
|
| -void ReportLanguageDetectionError();
|
| -
|
| -// Called when it turns out that translating page is in unsupported language.
|
| -void ReportUnsupportedLanguage();
|
| -
|
| -void ReportUnsupportedLanguageAtInitiation(const std::string& language);
|
| -
|
| -// Provides UMA entry names for unit tests.
|
| -const char* GetMetricsName(MetricsNameIndex index);
|
| -
|
| -} // namespace TranslateManagerMetrics
|
| -
|
| -#endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_MANAGER_METRICS_H_
|
|
|