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

Unified Diff: chrome/browser/extensions/extension_tabs_module.cc

Issue 199064: [chromium-reviews] Language detection works only for Windows now. Make chrome.tabs.detectLanguag... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/browser/extensions/extension_tabs_module_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_tabs_module.cc
===================================================================
--- chrome/browser/extensions/extension_tabs_module.cc (revision 25690)
+++ chrome/browser/extensions/extension_tabs_module.cc (working copy)
@@ -764,6 +764,11 @@
}
bool DetectTabLanguageFunction::RunImpl() {
+#if !defined(OS_WIN)
+ error_ = keys::kSupportedInWindowsOnlyError;
+ return false;
+#endif
+
int tab_id = 0;
Browser* browser = NULL;
TabContents* contents = NULL;
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_tabs_module_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698