summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_flash_proxy.cc
diff options
context:
space:
mode:
authortsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-18 22:26:51 +0000
committertsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-18 22:26:51 +0000
commit6b4dcb07b0337d60fcd125f594f176ca0ce42566 (patch)
treedbdd5100367e1054a7c1cbc7863331e46b6a02d3 /ppapi/proxy/ppb_flash_proxy.cc
parent7c28cce9e70231f1152b325449a9ac18a95a7454 (diff)
downloadchromium_src-6b4dcb07b0337d60fcd125f594f176ca0ce42566.zip
chromium_src-6b4dcb07b0337d60fcd125f594f176ca0ce42566.tar.gz
chromium_src-6b4dcb07b0337d60fcd125f594f176ca0ce42566.tar.bz2
Let flash query the number of CPU cores present.
Review URL: https://chromiumcodereview.appspot.com/10533163 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_flash_proxy.cc')
-rw-r--r--ppapi/proxy/ppb_flash_proxy.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ppapi/proxy/ppb_flash_proxy.cc b/ppapi/proxy/ppb_flash_proxy.cc
index 28444e9..0033a10 100644
--- a/ppapi/proxy/ppb_flash_proxy.cc
+++ b/ppapi/proxy/ppb_flash_proxy.cc
@@ -301,6 +301,8 @@ PP_Var PPB_Flash_Proxy::GetSetting(PP_Instance instance,
case PP_FLASHSETTING_LANGUAGE:
return StringVar::StringToPPVar(
PluginGlobals::Get()->plugin_proxy_delegate()->GetUILanguage());
+ case PP_FLASHSETTING_NUMCORES:
+ return PP_MakeInt32(plugin_dispatcher->preferences().number_of_cpu_cores);
}
return PP_MakeUndefined();
}