| OLD | NEW | 
|    1 // Copyright 2014 The Chromium Authors. All rights reserved. |    1 // Copyright 2014 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/ui/android/infobars/auto_login_infobar_delegate_android
     .h" |    5 #include "chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android
     .h" | 
|    6  |    6  | 
|    7 #include "base/android/jni_android.h" |    7 #include "base/android/jni_android.h" | 
|    8 #include "base/android/jni_helper.h" |    8 #include "base/android/jni_helper.h" | 
|    9 #include "base/android/jni_string.h" |    9 #include "base/android/jni_string.h" | 
|   10 #include "base/strings/utf_string_conversions.h" |   10 #include "base/strings/utf_string_conversions.h" | 
|   11 #include "chrome/browser/infobars/infobar.h" |  | 
|   12 #include "chrome/browser/infobars/infobar_service.h" |   11 #include "chrome/browser/infobars/infobar_service.h" | 
|   13 #include "chrome/browser/infobars/simple_alert_infobar_delegate.h" |   12 #include "chrome/browser/infobars/simple_alert_infobar_delegate.h" | 
|   14 #include "chrome/browser/ui/auto_login_infobar_delegate.h" |   13 #include "chrome/browser/ui/auto_login_infobar_delegate.h" | 
 |   14 #include "components/infobars/core/infobar.h" | 
|   15 #include "content/public/browser/web_contents.h" |   15 #include "content/public/browser/web_contents.h" | 
|   16 #include "grit/generated_resources.h" |   16 #include "grit/generated_resources.h" | 
|   17 #include "grit/theme_resources.h" |   17 #include "grit/theme_resources.h" | 
|   18 #include "jni/AutoLoginDelegate_jni.h" |   18 #include "jni/AutoLoginDelegate_jni.h" | 
|   19 #include "ui/base/l10n/l10n_util.h" |   19 #include "ui/base/l10n/l10n_util.h" | 
|   20  |   20  | 
|   21 using base::android::ConvertUTF8ToJavaString; |   21 using base::android::ConvertUTF8ToJavaString; | 
|   22 using base::android::ScopedJavaLocalRef; |   22 using base::android::ScopedJavaLocalRef; | 
|   23  |   23  | 
|   24  |   24  | 
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  116   infobar()->RemoveSelf(); |  116   infobar()->RemoveSelf(); | 
|  117 } |  117 } | 
|  118  |  118  | 
|  119 void AutoLoginInfoBarDelegateAndroid::LoginDismiss(JNIEnv* env, jobject obj) { |  119 void AutoLoginInfoBarDelegateAndroid::LoginDismiss(JNIEnv* env, jobject obj) { | 
|  120   infobar()->RemoveSelf(); |  120   infobar()->RemoveSelf(); | 
|  121 } |  121 } | 
|  122  |  122  | 
|  123 bool AutoLoginInfoBarDelegateAndroid::Register(JNIEnv* env) { |  123 bool AutoLoginInfoBarDelegateAndroid::Register(JNIEnv* env) { | 
|  124   return RegisterNativesImpl(env); |  124   return RegisterNativesImpl(env); | 
|  125 } |  125 } | 
| OLD | NEW |