Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: chrome/browser/ui/android/infobars/grouped_permission_infobar.cc

Issue 2315563002: Add PermissionPromptAndroid skeleton (Closed)
Patch Set: address review comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698