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

Unified Diff: chrome/browser/ui/browser_commands.cc

Issue 2900603003: Successful translation erroneously reported on page with too little text (Closed)
Patch Set: Fixed a nit Created 3 years, 6 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/ui/browser_commands.cc
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index 54582710f9eeabe66591d594472edeb84fde23ee..07d498e465cf2cdb07c32690ea6c948c621fefbb 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -864,6 +864,8 @@ void Translate(Browser* browser) {
if (chrome_translate_client) {
if (chrome_translate_client->GetLanguageState().translation_pending())
step = translate::TRANSLATE_STEP_TRANSLATING;
+ else if (chrome_translate_client->GetLanguageState().translation_error())
+ step = translate::TRANSLATE_STEP_TRANSLATE_ERROR;
else if (chrome_translate_client->GetLanguageState().IsPageTranslated())
step = translate::TRANSLATE_STEP_AFTER_TRANSLATE;
}
« no previous file with comments | « chrome/browser/translate/translate_manager_browsertest.cc ('k') | components/translate/core/browser/language_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698