| 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/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 Loading... |
| 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 } |
| OLD | NEW |