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

Unified Diff: chrome/browser/translate/translate_infobar_delegate.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: chrome/browser/translate/translate_infobar_delegate.h
diff --git a/chrome/browser/translate/translate_infobar_delegate.h b/chrome/browser/translate/translate_infobar_delegate.h
index 5b21995637dc7b7b537a693860f735d984c41738..486aa96005ee5971469fbc13e2326661577272c4 100644
--- a/chrome/browser/translate/translate_infobar_delegate.h
+++ b/chrome/browser/translate/translate_infobar_delegate.h
@@ -13,8 +13,8 @@
#include "base/logging.h"
#include "chrome/browser/infobars/infobar_delegate.h"
#include "chrome/browser/translate/translate_prefs.h"
-#include "chrome/common/chrome_constants.h"
#include "chrome/common/translate/translate_errors.h"
+#include "components/translate/common/translate_constants.h"
class PrefService;
@@ -103,7 +103,7 @@ class TranslateInfoBarDelegate : public InfoBarDelegate {
// Convenience methods.
std::string original_language_code() const {
return (original_language_index() == kNoIndex) ?
- chrome::kUnknownLanguageCode :
+ translate::kUnknownLanguageCode :
language_code_at(original_language_index());
}
std::string target_language_code() const {
« no previous file with comments | « chrome/browser/translate/translate_browsertest.cc ('k') | chrome/browser/translate/translate_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698