OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/grouped_permission_infobar.h" | 5 #include "chrome/browser/ui/android/infobars/grouped_permission_infobar.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
10 #include "chrome/browser/android/resource_mapper.h" | 10 #include "chrome/browser/android/resource_mapper.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 void GroupedPermissionInfoBar::SetJavaInfoBar( | 82 void GroupedPermissionInfoBar::SetJavaInfoBar( |
83 const base::android::JavaRef<jobject>& java_info_bar) { | 83 const base::android::JavaRef<jobject>& java_info_bar) { |
84 InfoBarAndroid::SetJavaInfoBar(java_info_bar); | 84 InfoBarAndroid::SetJavaInfoBar(java_info_bar); |
85 JNIEnv* env = base::android::AttachCurrentThread(); | 85 JNIEnv* env = base::android::AttachCurrentThread(); |
86 Java_GroupedPermissionInfoBar_setNativePtr(env, java_info_bar, | 86 Java_GroupedPermissionInfoBar_setNativePtr(env, java_info_bar, |
87 reinterpret_cast<intptr_t>(this)); | 87 reinterpret_cast<intptr_t>(this)); |
88 } | 88 } |
89 | 89 |
90 GroupedPermissionInfoBarDelegate* GroupedPermissionInfoBar::GetDelegate() { | 90 GroupedPermissionInfoBarDelegate* GroupedPermissionInfoBar::GetDelegate() { |
91 return static_cast<GroupedPermissionInfoBarDelegate*>(delegate()); | 91 return delegate()->AsGroupedPermissionInfoBarDelegate(); |
92 } | 92 } |
OLD | NEW |