summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
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(