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

Unified Diff: components/translate/common/translate_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
« no previous file with comments | « components/translate/common/translate_switches.cc ('k') | components/translate/common/translate_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/common/translate_util.h
diff --git a/chrome/common/translate/translate_util.h b/components/translate/common/translate_util.h
similarity index 74%
rename from chrome/common/translate/translate_util.h
rename to components/translate/common/translate_util.h
index 60a84b8f47cb4da4384833fc35f0708661a417fe..41b34968e6863780c586e9d98695b8008de9699f 100644
--- a/chrome/common/translate/translate_util.h
+++ b/components/translate/common/translate_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_TRANSLATE_UTIL_H_
-#define CHROME_COMMON_TRANSLATE_TRANSLATE_UTIL_H_
+#ifndef COMPONENTS_TRANSLATE_COMMON_TRANSLATE_UTIL_H_
+#define COMPONENTS_TRANSLATE_COMMON_TRANSLATE_UTIL_H_
#include <string>
class GURL;
-namespace TranslateUtil {
+namespace translate {
// Isolated world sets following security-origin by default.
extern const char kSecurityOrigin[];
@@ -23,6 +23,6 @@ void ToChromeLanguageSynonym(std::string* language);
// Get Security origin with which Translate runs.
GURL GetTranslateSecurityOrigin();
-} // namespace TranslateUtil
+} // namespace translate
-#endif // CHROME_COMMON_TRANSLATE_TRANSLATE_UTIL_H_
+#endif // COMPONENTS_TRANSLATE_COMMON_TRANSLATE_UTIL_H_
« no previous file with comments | « components/translate/common/translate_switches.cc ('k') | components/translate/common/translate_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698