[M120][Tizen][Onscreen] Fix build errors for TV profile
[platform/framework/web/chromium-efl.git] / chrome / browser / browser_process_platform_part_android.cc
1 // Copyright 2013 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/browser_process_platform_part_android.h"
6
7 #include "base/android/memory_pressure_listener_android.h"
8 #include "chrome/browser/lifetime/application_lifetime_android.h"
9
10 BrowserProcessPlatformPart::BrowserProcessPlatformPart() {
11   base::android::MemoryPressureListenerAndroid::Initialize(
12       base::android::AttachCurrentThread());
13 }
14
15 BrowserProcessPlatformPart::~BrowserProcessPlatformPart() {
16 }
17
18 void BrowserProcessPlatformPart::AttemptExit(bool try_to_quit_application) {
19   // Tell the Java code to finish() the Activity.
20   chrome::TerminateAndroid();
21 }