Index: chrome/browser/ui/android/infobars/auto_signin_first_run_infobar.cc |
diff --git a/chrome/browser/ui/android/infobars/auto_signin_first_run_infobar.cc b/chrome/browser/ui/android/infobars/auto_signin_first_run_infobar.cc |
deleted file mode 100644 |
index 02a8c9a7b42d758057c8f4911f492e05bdcb2665..0000000000000000000000000000000000000000 |
--- a/chrome/browser/ui/android/infobars/auto_signin_first_run_infobar.cc |
+++ /dev/null |
@@ -1,55 +0,0 @@ |
-// Copyright 2015 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/ui/android/infobars/auto_signin_first_run_infobar.h" |
- |
-#include <utility> |
- |
-#include "base/android/jni_android.h" |
-#include "base/android/jni_array.h" |
-#include "base/android/jni_string.h" |
-#include "components/password_manager/core/common/credential_manager_types.h" |
-#include "jni/AutoSigninFirstRunInfoBar_jni.h" |
- |
-AutoSigninFirstRunInfoBar::AutoSigninFirstRunInfoBar( |
- scoped_ptr<AutoSigninFirstRunInfoBarDelegate> delegate) |
- : ConfirmInfoBar(std::move(delegate)) {} |
- |
-AutoSigninFirstRunInfoBar::~AutoSigninFirstRunInfoBar() {} |
- |
-base::android::ScopedJavaLocalRef<jobject> |
-AutoSigninFirstRunInfoBar::CreateRenderInfoBar(JNIEnv* env) { |
- using base::android::ConvertUTF16ToJavaString; |
- using base::android::ScopedJavaLocalRef; |
- AutoSigninFirstRunInfoBarDelegate* auto_signin_infobar_delegate = |
- static_cast<AutoSigninFirstRunInfoBarDelegate*>(delegate()); |
- ScopedJavaLocalRef<jstring> ok_button_text = ConvertUTF16ToJavaString( |
- env, GetTextFor(ConfirmInfoBarDelegate::BUTTON_OK)); |
- ScopedJavaLocalRef<jstring> cancel_button_text = ConvertUTF16ToJavaString( |
- env, GetTextFor(ConfirmInfoBarDelegate::BUTTON_CANCEL)); |
- ScopedJavaLocalRef<jstring> explanation_text = ConvertUTF16ToJavaString( |
- env, auto_signin_infobar_delegate->GetExplanation()); |
- ScopedJavaLocalRef<jstring> message_text = ConvertUTF16ToJavaString( |
- env, auto_signin_infobar_delegate->GetMessageText()); |
- |
- return Java_AutoSigninFirstRunInfoBar_show( |
- env, message_text.obj(), ok_button_text.obj(), explanation_text.obj(), |
- auto_signin_infobar_delegate->message_link_range().start(), |
- auto_signin_infobar_delegate->message_link_range().end()); |
-} |
- |
-void AutoSigninFirstRunInfoBar::OnLinkClicked( |
- JNIEnv* env, |
- const JavaParamRef<jobject>& obj) { |
- GetDelegate()->LinkClicked(NEW_FOREGROUND_TAB); |
-} |
- |
-bool AutoSigninFirstRunInfoBar::Register(JNIEnv* env) { |
- return RegisterNativesImpl(env); |
-} |
- |
-scoped_ptr<infobars::InfoBar> CreateAutoSigninFirstRunInfoBar( |
- scoped_ptr<AutoSigninFirstRunInfoBarDelegate> delegate) { |
- return make_scoped_ptr(new AutoSigninFirstRunInfoBar(std::move(delegate))); |
-} |