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

Unified Diff: components/translate/common/translate_util.cc

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_util.cc
diff --git a/chrome/common/translate/translate_util.cc b/components/translate/common/translate_util.cc
similarity index 95%
rename from chrome/common/translate/translate_util.cc
rename to components/translate/common/translate_util.cc
index 71c0860b0713ba124908cdfc1e54622a8d666625..4e151d31e442b0bf9b45794049e5102063e256d4 100644
--- a/chrome/common/translate/translate_util.cc
+++ b/components/translate/common/translate_util.cc
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/common/translate/translate_util.h"
+#include "components/translate/common/translate_util.h"
#include "base/basictypes.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "base/strings/string_split.h"
-#include "chrome/common/chrome_switches.h"
+#include "components/translate/common/translate_switches.h"
#include "url/gurl.h"
namespace {
@@ -32,7 +32,7 @@ void SplitIntoMainAndTail(const std::string& language,
} // namespace
-namespace TranslateUtil {
+namespace translate {
struct LanguageCodePair {
// Code used in supporting list of Translate.
@@ -122,4 +122,4 @@ GURL GetTranslateSecurityOrigin() {
return GURL(security_origin);
}
-} // namespace TranslateUtil
+} // namespace translate
« no previous file with comments | « components/translate/common/translate_util.h ('k') | components/translate/common/translate_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698