Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6036)

Unified Diff: chrome/browser/lifetime/application_lifetime.cc

Issue 999033003: Remove uses of KillProcess() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/lifetime/application_lifetime.cc
diff --git a/chrome/browser/lifetime/application_lifetime.cc b/chrome/browser/lifetime/application_lifetime.cc
index 7cc9c19bf337cf7c9dc9dc41c7a2b664ca4ee75f..be081a07ca6f21b25668f47d9838fa9957b94be3 100644
--- a/chrome/browser/lifetime/application_lifetime.cc
+++ b/chrome/browser/lifetime/application_lifetime.cc
@@ -11,7 +11,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/prefs/pref_service.h"
-#include "base/process/kill.h"
+#include "base/process/process.h"
#include "base/process/process_handle.h"
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
@@ -306,7 +306,7 @@ void SessionEnding() {
// termination as soon as it hides or destroys its windows. Since any
// execution past that point will be non-deterministically cut short, we
// might as well put ourselves out of that misery deterministically.
- base::KillProcess(base::GetCurrentProcessHandle(), 0, false);
+ base::Process::Current().Terminate(0, false);
}
void IncrementKeepAliveCount() {

Powered by Google App Engine
This is Rietveld 408576698