OLD | NEW |
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) {} |
| 10 |
9 gfx::VectorIconId PermissionRequest::GetVectorIconId() const { | 11 gfx::VectorIconId PermissionRequest::GetVectorIconId() const { |
10 return gfx::VectorIconId::VECTOR_ICON_NONE; | 12 return gfx::VectorIconId::VECTOR_ICON_NONE; |
11 } | 13 } |
12 | 14 |
| 15 bool PermissionRequest::ShouldShowPersistenceToggle() const { |
| 16 return false; |
| 17 } |
| 18 |
13 PermissionRequestType PermissionRequest::GetPermissionRequestType() const { | 19 PermissionRequestType PermissionRequest::GetPermissionRequestType() const { |
14 return PermissionRequestType::UNKNOWN; | 20 return PermissionRequestType::UNKNOWN; |
15 } | 21 } |
16 | 22 |
17 PermissionRequestGestureType PermissionRequest::GetGestureType() const { | 23 PermissionRequestGestureType PermissionRequest::GetGestureType() const { |
18 return PermissionRequestGestureType::UNKNOWN; | 24 return PermissionRequestGestureType::UNKNOWN; |
19 } | 25 } |
OLD | NEW |