| Index: chrome/browser/android/signin/signin_promo_util_android.cc
|
| diff --git a/chrome/browser/android/signin/signin_promo_util_android.cc b/chrome/browser/android/signin/signin_promo_util_android.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3a0cef6493bdac460411f478e7fb907251e40a8f
|
| --- /dev/null
|
| +++ b/chrome/browser/android/signin/signin_promo_util_android.cc
|
| @@ -0,0 +1,28 @@
|
| +// Copyright 2016 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/android/signin/signin_promo_util_android.h"
|
| +
|
| +#include "base/android/context_utils.h"
|
| +#include "base/android/jni_android.h"
|
| +#include "jni/SigninPromoUtil_jni.h"
|
| +
|
| +namespace chrome {
|
| +namespace android {
|
| +
|
| +// static
|
| +void SigninPromoUtilAndroid::OpenAccountSigninActivityForPromo(
|
| + signin_metrics::AccessPoint access_point) {
|
| + Java_SigninPromoUtil_openAccountSigninActivityForPromo(
|
| + base::android::AttachCurrentThread(),
|
| + base::android::GetApplicationContext(), jint(access_point));
|
| +}
|
| +
|
| +// static
|
| +bool SigninPromoUtilAndroid::Register(JNIEnv* env) {
|
| + return RegisterNativesImpl(env);
|
| +}
|
| +
|
| +} // namespace android
|
| +} // namespace chrome
|
|
|