| Index: chrome/browser/lifetime/application_lifetime_android.cc
|
| diff --git a/chrome/browser/lifetime/application_lifetime_android.cc b/chrome/browser/lifetime/application_lifetime_android.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d046bc2f2c3fee4d9bb528afb263d80995545538
|
| --- /dev/null
|
| +++ b/chrome/browser/lifetime/application_lifetime_android.cc
|
| @@ -0,0 +1,25 @@
|
| +// Copyright (c) 2012 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/lifetime/application_lifetime_android.h"
|
| +
|
| +#include <jni.h>
|
| +
|
| +#include "base/android/jni_android.h"
|
| +#include "base/logging.h"
|
| +#include "chrome/browser/lifetime/application_lifetime.h"
|
| +#include "jni/ApplicationLifetime_jni.h"
|
| +
|
| +namespace browser {
|
| +
|
| +void AttemptRestart() {
|
| + JNIEnv* env = base::android::AttachCurrentThread();
|
| + Java_ApplicationLifetime_attemptRestart(env);
|
| +}
|
| +
|
| +bool RegisterApplicationLifetimeAndroid(JNIEnv* env) {
|
| + return RegisterNativesImpl(env);
|
| +}
|
| +
|
| +} // namespace browser
|
|
|