- content::NotificationService::current()->Notify(
- xwalk::NOTIFICATION_RUNTIME_OPENED,
- content::Source<Runtime>(this),
- content::NotificationService::NoDetails());
- if (observer_)
- observer_->OnRuntimeAdded(this);
-}
-
-Runtime::~Runtime() {
- content::NotificationService::current()->Notify(
- xwalk::NOTIFICATION_RUNTIME_CLOSED,
- content::Source<Runtime>(this),
- content::NotificationService::NoDetails());
- if (observer_)
- observer_->OnRuntimeRemoved(this);
-}
-
-void Runtime::EnableTitleUpdatedNotification() {