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

Unified Diff: components/translate/core/browser/language_state.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: components/translate/core/browser/language_state.cc
diff --git a/components/translate/core/browser/language_state.cc b/components/translate/core/browser/language_state.cc
index d7b65f81c5f00874db3309d8cb5aeead7b7ab997..1b4205ba7efd0c94743fd67e18ce612e6811378a 100644
--- a/components/translate/core/browser/language_state.cc
+++ b/components/translate/core/browser/language_state.cc
@@ -14,6 +14,7 @@ LanguageState::LanguageState(TranslateDriver* driver)
translate_driver_(driver),
page_needs_translation_(false),
translation_pending_(false),
+ translation_error_(false),
translation_declined_(false),
in_page_navigation_(false),
translate_enabled_(false) {
@@ -45,6 +46,7 @@ void LanguageState::DidNavigate(bool in_page_navigation,
SetIsPageTranslated(false);
translation_pending_ = false;
+ translation_error_ = false;
translation_declined_ = false;
SetTranslateEnabled(false);
« no previous file with comments | « components/translate/core/browser/language_state.h ('k') | components/translate/core/browser/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698