summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-16 20:06:40 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-16 20:06:40 +0000
commit18ddc81c7ec8fa8a95f966c745923438a2cad909 (patch)
treeba51465f652066d23f90b7513cb1a0eb400c5e68 /chrome/browser/tab_contents
parent4974c8d5574efecb5aeb90a61b4c7418234513a7 (diff)
downloadchromium_src-18ddc81c7ec8fa8a95f966c745923438a2cad909.zip
chromium_src-18ddc81c7ec8fa8a95f966c745923438a2cad909.tar.gz
chromium_src-18ddc81c7ec8fa8a95f966c745923438a2cad909.tar.bz2
Disabling the language detection on Linux and Mac.
The CLD library is not ported to these platforms yet and the code is currently causing a memory leak. TBR=brettw BUG=None Review URL: http://codereview.chromium.org/500073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34738 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/tab_contents.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index aba37d7..b4acc38 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -1744,6 +1744,9 @@ void TabContents::OnPageContents(const GURL& url,
hs->SetPageContents(url, contents);
}
+
+// TODO(port): Port detection language to Mac and Linux.
+#if defined(OS_WIN)
// Detect the page language. The detection happens on the file thread.
// We get the TAB_LANGUAGE_DETERMINED notification when the language has been
// detected.
@@ -1753,6 +1756,7 @@ void TabContents::OnPageContents(const GURL& url,
render_view_host()->routing_id(),
page_id, contents);
cld_helper_->DetectLanguage();
+#endif
}
void TabContents::DidStartProvisionalLoadForFrame(