summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authoryfriedman@chromium.org <yfriedman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-31 02:03:07 +0000
committeryfriedman@chromium.org <yfriedman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-31 02:03:07 +0000
commitd0962002fc3d0bfec3d8268aeae665c0fb6b53e6 (patch)
treee500e258209b5c0eecd4bd7f14bbe35bc1c9570e /webkit
parent08c50798f8b214b7e453f9c97215cc728b1a373a (diff)
downloadchromium_src-d0962002fc3d0bfec3d8268aeae665c0fb6b53e6.zip
chromium_src-d0962002fc3d0bfec3d8268aeae665c0fb6b53e6.tar.gz
chromium_src-d0962002fc3d0bfec3d8268aeae665c0fb6b53e6.tar.bz2
Fix compiler error for builds without p2p_apis
BUG= TEST= Review URL: http://codereview.chromium.org/9297047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119813 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/plugins/ppapi/resource_creation_impl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/plugins/ppapi/resource_creation_impl.cc b/webkit/plugins/ppapi/resource_creation_impl.cc
index b1480a0..71402cb 100644
--- a/webkit/plugins/ppapi/resource_creation_impl.cc
+++ b/webkit/plugins/ppapi/resource_creation_impl.cc
@@ -260,6 +260,8 @@ PP_Resource ResourceCreationImpl::CreateTransport(PP_Instance instance,
PP_TransportType type) {
#if defined(ENABLE_P2P_APIS)
return PPB_Transport_Impl::Create(instance, name, type);
+#else
+ return 0;
#endif
}