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

Unified Diff: components/translate/language_detection/language_detection_util.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/language_detection/language_detection_util.h
diff --git a/chrome/common/translate/language_detection_util.h b/components/translate/language_detection/language_detection_util.h
similarity index 84%
rename from chrome/common/translate/language_detection_util.h
rename to components/translate/language_detection/language_detection_util.h
index 4962b45bdbc24bc2ca4df77b0695cb0f6349f16e..8af9fce8f565eb5dd45212487e3edb6f2e1b9f0f 100644
--- a/chrome/common/translate/language_detection_util.h
+++ b/components/translate/language_detection/language_detection_util.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_LANGUAGE_DETECTION_UTIL_H_
-#define CHROME_COMMON_TRANSLATE_LANGUAGE_DETECTION_UTIL_H_
+#ifndef COMPONENTS_TRANSLATE_LANGUAGE_DETECTION_LANGUAGE_DETECTION_UTIL_H_
+#define COMPONENTS_TRANSLATE_LANGUAGE_DETECTION_LANGUAGE_DETECTION_UTIL_H_
#include <string>
#include "base/strings/string16.h"
-namespace LanguageDetectionUtil {
+namespace translate {
// Determines content page language from Content-Language code and contents.
std::string DeterminePageLanguage(const std::string& code,
@@ -42,6 +42,6 @@ bool MaybeServerWrongConfiguration(const std::string& page_language,
// Returns the version string of CLD.
std::string GetCLDVersion();
-} // namespace LanguageDetectionUtil
+} // namespace translate
-#endif // CHROME_COMMON_TRANSLATE_LANGUAGE_DETECTION_UTIL_H_
+#endif // COMPONENTS_TRANSLATE_LANGUAGE_DETECTION_LANGUAGE_DETECTION_UTIL_H_
« no previous file with comments | « components/translate/language_detection/DEPS ('k') | components/translate/language_detection/language_detection_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698