nit: if (scoped_refptr<ApplicationData> app_data = app_storage_->GetApplicationData(app_id))