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

Unified Diff: chrome/renderer/translate_helper.h

Issue 11052002: Get the document language directly from WebKit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reduced patch that only expects langauge from http-equiv setting. Created 8 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
« no previous file with comments | « no previous file | chrome/renderer/translate_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/translate_helper.h
diff --git a/chrome/renderer/translate_helper.h b/chrome/renderer/translate_helper.h
index bc5fc20930ce662b05d3af0e8386bc7b178f0740..de7afa3c0c7bdaa060531b6d706e4ff993104105 100644
--- a/chrome/renderer/translate_helper.h
+++ b/chrome/renderer/translate_helper.h
@@ -70,13 +70,6 @@ class TranslateHelper : public content::RenderViewObserver {
// should not be translated.
static bool IsPageTranslatable(WebKit::WebDocument* document);
- // Returns the language specified in the language meta tag of |document|, or
- // an empty string if no such tag was found.
- // The tag may specify several languages, the first one is returned.
- // Example of such meta-tag:
- // <meta http-equiv="content-language" content="en, fr">
- static std::string GetPageLanguageFromMetaTag(WebKit::WebDocument* document);
-
// Returns the ISO 639_1 language code of the specified |text|, or 'unknown'
// if it failed.
static std::string DetermineTextLanguage(const string16& text);
« no previous file with comments | « no previous file | chrome/renderer/translate_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698