Index: chrome/browser/translate/translate_manager.cc |
diff --git a/chrome/browser/translate/translate_manager.cc b/chrome/browser/translate/translate_manager.cc |
index c3f7829e85e0f12515cb6f08da7f335677247229..2751f170e25ebf4844ebcb44aa62996b093167a7 100644 |
--- a/chrome/browser/translate/translate_manager.cc |
+++ b/chrome/browser/translate/translate_manager.cc |
@@ -33,12 +33,12 @@ |
#include "chrome/browser/ui/browser_finder.h" |
#include "chrome/browser/ui/browser_tabstrip.h" |
#include "chrome/browser/ui/tabs/tab_strip_model.h" |
-#include "chrome/common/chrome_constants.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/common/render_messages.h" |
#include "chrome/common/translate/language_detection_details.h" |
#include "chrome/common/url_constants.h" |
+#include "components/translate/common/translate_constants.h" |
#include "content/public/browser/navigation_controller.h" |
#include "content/public/browser/navigation_details.h" |
#include "content/public/browser/navigation_entry.h" |
@@ -466,7 +466,7 @@ void TranslateManager::TranslatePage(WebContents* web_contents, |
// server side auto language detection. |
std::string source_lang(original_source_lang); |
if (!IsSupportedLanguage(source_lang)) |
- source_lang = std::string(chrome::kUnknownLanguageCode); |
+ source_lang = std::string(translate::kUnknownLanguageCode); |
Profile* profile = |
Profile::FromBrowserContext(web_contents->GetBrowserContext()); |
@@ -580,7 +580,7 @@ void TranslateManager::DoTranslatePage(WebContents* web_contents, |
void TranslateManager::PageTranslated(WebContents* web_contents, |
PageTranslatedDetails* details) { |
if ((details->error_type == TranslateErrors::NONE) && |
- details->source_language != chrome::kUnknownLanguageCode && |
+ details->source_language != translate::kUnknownLanguageCode && |
!IsSupportedLanguage(details->source_language)) { |
details->error_type = TranslateErrors::UNSUPPORTED_LANGUAGE; |
} |