std::unique_ptr<Runtime> Runtime::MakeRuntime(
common::ApplicationData* app_data) {
- if (app_data->app_type() == common::ApplicationData::UI) {
- return std::unique_ptr<Runtime>(new UiRuntime(app_data));
- }
#ifdef IME_FEATURE_SUPPORT
- else if (TIZEN_FEATURE_web_ime_support &&
- app_data->app_type() == common::ApplicationData::IME) {
+ if (TIZEN_FEATURE_web_ime_support &&
+ app_data->app_type() == common::ApplicationData::IME) {
return std::unique_ptr<Runtime>(new ImeRuntime(app_data));
}
#endif // IME_FEATURE_SUPPORT
#ifdef WATCH_FACE_FEATURE_SUPPORT
- else if (TIZEN_FEATURE_watch_face_support &&
- app_data->app_type() == common::ApplicationData::WATCH) {
+ if (TIZEN_FEATURE_watch_face_support &&
+ app_data->app_type() == common::ApplicationData::WATCH) {
return std::unique_ptr<Runtime>(new WatchRuntime(app_data));
}
#endif // WATCH_FACE_FEATURE_SUPPORT
- else {
- return std::unique_ptr<Runtime>(new UiRuntime(app_data));
- }
+ return std::unique_ptr<Runtime>(new UiRuntime(app_data));
}
void Runtime::ProcessClosingPage(WebApplication* application) {