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

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

Issue 651253002: Enforce handle ownership in base::Process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove old class Created 6 years, 2 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 f02bd0666b44a9dae9dc768918ca69803795aecd..afe1d2c224b0aded6eb558d63bb958fe2b96558f 100644
--- a/chrome/browser/lifetime/application_lifetime.cc
+++ b/chrome/browser/lifetime/application_lifetime.cc
@@ -14,7 +14,7 @@
#include "base/metrics/field_trial.h"
#include "base/prefs/pref_service.h"
#include "base/process/kill.h"
-#include "base/process/process.h"
+#include "base/process/process_handle.h"
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/browser_process_platform_part.h"
@@ -309,7 +309,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::Process::Current().handle(), 0, false);
+ base::KillProcess(base::GetCurrentProcessHandle(), 0, false);
}
}

Powered by Google App Engine
This is Rietveld 408576698