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

Side by Side Diff: chrome/browser/permissions/grouped_permission_infobar_delegate_android.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/permissions/grouped_permission_infobar_delegate_android .h" 5 #include "chrome/browser/permissions/grouped_permission_infobar_delegate_android .h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "chrome/browser/android/android_theme_resources.h" 8 #include "chrome/browser/android/android_theme_resources.h"
9 #include "chrome/browser/infobars/infobar_service.h" 9 #include "chrome/browser/infobars/infobar_service.h"
10 #include "chrome/browser/permissions/permission_request.h" 10 #include "chrome/browser/permissions/permission_request.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 base::string16 GroupedPermissionInfoBarDelegate::GetButtonLabel( 97 base::string16 GroupedPermissionInfoBarDelegate::GetButtonLabel(
98 InfoBarButton button) const { 98 InfoBarButton button) const {
99 if (permission_count() > 1) { 99 if (permission_count() > 1) {
100 return l10n_util::GetStringUTF16((button == BUTTON_OK) ? IDS_APP_OK 100 return l10n_util::GetStringUTF16((button == BUTTON_OK) ? IDS_APP_OK
101 : IDS_APP_CANCEL); 101 : IDS_APP_CANCEL);
102 } 102 }
103 103
104 return l10n_util::GetStringUTF16((button == BUTTON_OK) ? IDS_PERMISSION_ALLOW 104 return l10n_util::GetStringUTF16((button == BUTTON_OK) ? IDS_PERMISSION_ALLOW
105 : IDS_PERMISSION_DENY); 105 : IDS_PERMISSION_DENY);
106 } 106 }
107
108 GroupedPermissionInfoBarDelegate*
109 GroupedPermissionInfoBarDelegate::AsGroupedPermissionInfoBarDelegate() {
110 return this;
111 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698