| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_bubble_request_impl.h" | 5 #include "chrome/browser/permissions/permission_bubble_request_impl.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "chrome/browser/permissions/permission_context_base.h" | 8 #include "chrome/browser/permissions/permission_context_base.h" |
| 9 #include "chrome/browser/permissions/permission_uma_util.h" | 9 #include "chrome/browser/permissions/permission_uma_util.h" |
| 10 #include "chrome/grit/generated_resources.h" | 10 #include "chrome/grit/generated_resources.h" |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 154 |
| 155 void PermissionBubbleRequestImpl::Cancelled() { | 155 void PermissionBubbleRequestImpl::Cancelled() { |
| 156 RegisterActionTaken(); | 156 RegisterActionTaken(); |
| 157 permission_decided_callback_.Run(false, CONTENT_SETTING_DEFAULT); | 157 permission_decided_callback_.Run(false, CONTENT_SETTING_DEFAULT); |
| 158 } | 158 } |
| 159 | 159 |
| 160 void PermissionBubbleRequestImpl::RequestFinished() { | 160 void PermissionBubbleRequestImpl::RequestFinished() { |
| 161 is_finished_ = true; | 161 is_finished_ = true; |
| 162 delete_callback_.Run(); | 162 delete_callback_.Run(); |
| 163 } | 163 } |
| 164 |
| 165 PermissionBubbleType PermissionBubbleRequestImpl::GetPermissionBubbleType() |
| 166 const { |
| 167 return PermissionBubbleType::PERMISSION; |
| 168 } |
| OLD | NEW |