| 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/custom_handlers/register_protocol_handler_permission_re
quest.h" | 5 #include "chrome/browser/custom_handlers/register_protocol_handler_permission_re
quest.h" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 9 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 10 #include "chrome/grit/generated_resources.h" | 10 #include "chrome/grit/generated_resources.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void RegisterProtocolHandlerPermissionRequest::Cancelled() { | 91 void RegisterProtocolHandlerPermissionRequest::Cancelled() { |
| 92 content::RecordAction( | 92 content::RecordAction( |
| 93 base::UserMetricsAction("RegisterProtocolHandler.InfoBar_Deny")); | 93 base::UserMetricsAction("RegisterProtocolHandler.InfoBar_Deny")); |
| 94 registry_->OnIgnoreRegisterProtocolHandler(handler_); | 94 registry_->OnIgnoreRegisterProtocolHandler(handler_); |
| 95 } | 95 } |
| 96 | 96 |
| 97 void RegisterProtocolHandlerPermissionRequest::RequestFinished() { | 97 void RegisterProtocolHandlerPermissionRequest::RequestFinished() { |
| 98 delete this; | 98 delete this; |
| 99 } | 99 } |
| 100 | 100 |
| 101 PermissionBubbleType | 101 PermissionRequestType |
| 102 RegisterProtocolHandlerPermissionRequest::GetPermissionBubbleType() const { | 102 RegisterProtocolHandlerPermissionRequest::GetPermissionRequestType() const { |
| 103 return PermissionBubbleType::REGISTER_PROTOCOL_HANDLER; | 103 return PermissionRequestType::REGISTER_PROTOCOL_HANDLER; |
| 104 } | 104 } |
| OLD | NEW |