bool UiRuntime::OnCreate() {
auto appdata = common::ApplicationDataManager::GetCurrentAppData();
+ atom::Browser::Get()->Initialize();
if(appdata->splash_screen_info()){
atom::Browser* browser_model = atom::Browser::Get();
browser_model->SetSplashScreen();
if (browser_model->launched()) {
browser_model->AppControl(std::move(appcontrol));
} else {
- browser_model->Initialize();
browser_model->Launch(std::move(appcontrol));
}
}
resource_manager_->set_base_resource_path(app_data_->application_path());
if (app_data_->csp_info() != NULL || app_data_->csp_report_info() != NULL ||
- app_data_->allowed_navigation_info() != NULL) {
+ app_data_->allowed_navigation_info() != NULL) {
security_model_version_ = 2;
if (app_data_->csp_info() == NULL ||
app_data_->csp_info()->security_rules().empty()) {
}
void TizenBrowserParts::SetLongPollingTimeout(content::RenderViewHost* rvh) {
- if (app_data_->setting_info() != NULL &&
- app_data_->setting_info()->long_polling()) {
- boost::optional <unsigned int> polling_val(app_data_->setting_info()->long_polling());
+ auto setting = app_data_->setting_info();
+ if (setting.get() != NULL &&
+ setting->long_polling()) {
+ boost::optional <unsigned int> polling_val(setting->long_polling());
unsigned long *ptr = reinterpret_cast <unsigned long *> (&polling_val.get());
rvh->Send(new WrtViewMsg_SetLongPolling(rvh->GetRoutingID(), *ptr));
}