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

Unified Diff: chrome/common/translate_errors.h

Issue 3011008: Don't crash if the translate server reports a language we don't know (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: '' Created 10 years, 5 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
« no previous file with comments | « chrome/browser/translate/translate_manager_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/translate_errors.h
===================================================================
--- chrome/common/translate_errors.h (revision 52842)
+++ chrome/common/translate_errors.h (working copy)
@@ -14,6 +14,8 @@
NETWORK, // No connectivity.
INITIALIZATION_ERROR, // The translation script failed to initialize.
UNKNOWN_LANGUAGE, // The page's language could not be detected.
+ UNSUPPORTED_LANGUAGE, // The server detected a language that the browser
+ // does not know.
IDENTICAL_LANGUAGES, // The original and target languages are the same.
TRANSLATION_ERROR, // An error was reported by the translation script
// during translation.
« no previous file with comments | « chrome/browser/translate/translate_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698