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

Side by Side Diff: chrome/browser/permissions/permission_request.cc

Issue 2339863002: Use vector of PermissionRequest instead of ContentSettingsTypes for GroupedPermissionInfoBarDelegate (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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/permission_request.h" 5 #include "chrome/browser/permissions/permission_request.h"
6 6
7 #include "ui/gfx/vector_icons_public.h" 7 #include "ui/gfx/vector_icons_public.h"
8 8
9 PermissionRequest::PermissionRequest() : persist_(true) {} 9 PermissionRequest::PermissionRequest() : persist_(true) {}
10 10
11 gfx::VectorIconId PermissionRequest::GetVectorIconId() const { 11 gfx::VectorIconId PermissionRequest::GetVectorIconId() const {
12 return gfx::VectorIconId::VECTOR_ICON_NONE; 12 return gfx::VectorIconId::VECTOR_ICON_NONE;
13 } 13 }
14 14
15 bool PermissionRequest::ShouldShowPersistenceToggle() const { 15 bool PermissionRequest::ShouldShowPersistenceToggle() const {
16 return false; 16 return false;
17 } 17 }
18 18
19 PermissionRequestType PermissionRequest::GetPermissionRequestType() const { 19 PermissionRequestType PermissionRequest::GetPermissionRequestType() const {
20 return PermissionRequestType::UNKNOWN; 20 return PermissionRequestType::UNKNOWN;
21 } 21 }
22 22
23 PermissionRequestGestureType PermissionRequest::GetGestureType() const { 23 PermissionRequestGestureType PermissionRequest::GetGestureType() const {
24 return PermissionRequestGestureType::UNKNOWN; 24 return PermissionRequestGestureType::UNKNOWN;
25 } 25 }
26
27 ContentSettingsType PermissionRequest::GetContentSettingsType() const {
28 return CONTENT_SETTINGS_TYPE_DEFAULT;
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698