OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/browser_process_platform_part_mac.h" | 5 #include "chrome/browser/browser_process_platform_part_android.h" |
| 6 |
6 #include "chrome/browser/lifetime/application_lifetime_android.h" | 7 #include "chrome/browser/lifetime/application_lifetime_android.h" |
| 8 #include "chrome/browser/memory_purger.h" |
7 | 9 |
8 BrowserProcessPlatformPart::BrowserProcessPlatformPart() { | 10 BrowserProcessPlatformPart::BrowserProcessPlatformPart() { |
| 11 MemoryPurger::RegisterMemoryPressureListener(); |
9 } | 12 } |
10 | 13 |
11 BrowserProcessPlatformPart::~BrowserProcessPlatformPart() { | 14 BrowserProcessPlatformPart::~BrowserProcessPlatformPart() { |
12 } | 15 } |
13 | 16 |
14 void BrowserProcessPlatformPart::AttemptExit() { | 17 void BrowserProcessPlatformPart::AttemptExit() { |
15 // Tell the Java code to finish() the Activity. | 18 // Tell the Java code to finish() the Activity. |
16 chrome::TerminateAndroid(); | 19 chrome::TerminateAndroid(); |
17 } | 20 } |
OLD | NEW |