```
#if defined(OS_ANDROID)
android only code
#elif defined(OS_TIZEN_MOBILE)
  server->RegisterExtension(scoped_ptr<XWalkExtension>(
      new sysapps::DeviceCapabilitiesExtension(runtime_registry_.get())));
#else
other platform code
#endif
```