Rename event name to gpu-process-crashed
authorCheng Zhao <zcbenz@gmail.com>
Thu, 25 Jun 2015 14:01:57 +0000 (22:01 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 26 Jun 2015 02:34:38 +0000 (10:34 +0800)
atom/browser/api/atom_api_app.cc
docs/api/app.md

index 018ca1f..fea4ded 100644 (file)
@@ -210,7 +210,7 @@ void App::OnSelectCertificate(
 }
 
 void App::OnGpuProcessCrashed(base::TerminationStatus exit_code) {
-  Emit("gpu-crashed");
+  Emit("gpu-process-crashed");
 }
 
 base::FilePath App::GetPath(mate::Arguments* args, const std::string& name) {
index fd48855..89df0e7 100644 (file)
@@ -125,7 +125,7 @@ app.on('select-certificate', function(event, host, url, list, callback) {
 `event.preventDefault()` prevents from using the first certificate from
 the store.
 
-### Event: 'gpu-crashed'
+### Event: 'gpu-process-crashed'
 
 Emitted when the gpu process is crashed.