mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
0ae24ebfa4
Before this patch, when the profile is locked on Android, we would call "ps", parse the human-readable output and kill any other Gecko process that we could find. But this is completely unnecessary, as we know exactly that the PID of the process holding the lock is. In this patch we just kill the process holding the lock since this is equivalent to the previous behavior. Differential Revision: https://phabricator.services.mozilla.com/D106186
27 lines
623 B
C++
27 lines
623 B
C++
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef ProfileUnlockerAndroid_h
|
|
#define ProfileUnlockerAndroid_h
|
|
|
|
#include "nsIProfileUnlocker.h"
|
|
|
|
namespace mozilla {
|
|
|
|
class ProfileUnlockerAndroid final : public nsIProfileUnlocker {
|
|
public:
|
|
NS_DECL_ISUPPORTS
|
|
NS_DECL_NSIPROFILEUNLOCKER
|
|
|
|
explicit ProfileUnlockerAndroid(const pid_t aPid);
|
|
|
|
private:
|
|
~ProfileUnlockerAndroid();
|
|
pid_t mPid;
|
|
};
|
|
|
|
} // namespace mozilla
|
|
|
|
#endif // ProfileUnlockerAndroid_h
|