blob: 18c02b1eb57254dac4ba6a79c52f6d9482a8558c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/browser_process_platform_part_android.h"
#include "base/android/memory_pressure_listener_android.h"
#include "chrome/browser/lifetime/application_lifetime_android.h"
#include "chrome/browser/memory_purger.h"
BrowserProcessPlatformPart::BrowserProcessPlatformPart() {
base::android::MemoryPressureListenerAndroid::RegisterSystemCallback(
base::android::AttachCurrentThread());
}
BrowserProcessPlatformPart::~BrowserProcessPlatformPart() {
}
void BrowserProcessPlatformPart::AttemptExit() {
// Tell the Java code to finish() the Activity.
chrome::TerminateAndroid();
}
|