summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content/browser/gamepad/gamepad_service.cc15
-rw-r--r--content/browser/gamepad/gamepad_service.h4
2 files changed, 10 insertions, 9 deletions
diff --git a/content/browser/gamepad/gamepad_service.cc b/content/browser/gamepad/gamepad_service.cc
index 0efd505..cb9206b 100644
--- a/content/browser/gamepad/gamepad_service.cc
+++ b/content/browser/gamepad/gamepad_service.cc
@@ -42,7 +42,7 @@ void GamepadService::Start(
BrowserThread::PostTask(
BrowserThread::UI,
FROM_HERE,
- base::Bind(&GamepadService::RegisterForCloseNotification,
+ base::Bind(&GamepadService::RegisterForTerminationNotification,
base::Unretained(this),
associated_rph));
}
@@ -51,9 +51,10 @@ void GamepadService::Terminate() {
provider_.reset();
}
-void GamepadService::RegisterForCloseNotification(RenderProcessHost* rph) {
+void GamepadService::RegisterForTerminationNotification(
+ RenderProcessHost* rph) {
registrar_.Add(this,
- NOTIFICATION_RENDERER_PROCESS_CLOSED,
+ NOTIFICATION_RENDERER_PROCESS_TERMINATED,
Source<RenderProcessHost>(rph));
}
@@ -69,7 +70,7 @@ void GamepadService::Stop(const NotificationSource& source) {
BrowserThread::PostTask(
BrowserThread::UI,
FROM_HERE,
- base::Bind(&GamepadService::UnregisterForCloseNotification,
+ base::Bind(&GamepadService::UnregisterForTerminationNotification,
base::Unretained(this),
source));
@@ -77,15 +78,15 @@ void GamepadService::Stop(const NotificationSource& source) {
provider_->Pause();
}
-void GamepadService::UnregisterForCloseNotification(
+void GamepadService::UnregisterForTerminationNotification(
const NotificationSource& source) {
- registrar_.Remove(this, NOTIFICATION_RENDERER_PROCESS_CLOSED, source);
+ registrar_.Remove(this, NOTIFICATION_RENDERER_PROCESS_TERMINATED, source);
}
void GamepadService::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- DCHECK(type == NOTIFICATION_RENDERER_PROCESS_CLOSED);
+ DCHECK(type == NOTIFICATION_RENDERER_PROCESS_TERMINATED);
BrowserThread::PostTask(
BrowserThread::IO,
FROM_HERE,
diff --git a/content/browser/gamepad/gamepad_service.h b/content/browser/gamepad/gamepad_service.h
index 4a446b7..4e10112 100644
--- a/content/browser/gamepad/gamepad_service.h
+++ b/content/browser/gamepad/gamepad_service.h
@@ -48,8 +48,8 @@ class GamepadService : public NotificationObserver {
void Stop(const NotificationSource& source);
// Run on UI thread to receive/stop notifications of renderer closes.
- void RegisterForCloseNotification(RenderProcessHost* rph);
- void UnregisterForCloseNotification(const NotificationSource& source);
+ void RegisterForTerminationNotification(RenderProcessHost* rph);
+ void UnregisterForTerminationNotification(const NotificationSource& source);
// NotificationObserver overrides:
virtual void Observe(int type,