browser_process_platform_part_android.cc 752 B

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