| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/protocol_handler_registry.h" | 5 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 ignored_protocol_handlers_.push_back(handler); | 713 ignored_protocol_handlers_.push_back(handler); |
| 714 } | 714 } |
| 715 | 715 |
| 716 void ProtocolHandlerRegistry::AddPredefinedHandler( | 716 void ProtocolHandlerRegistry::AddPredefinedHandler( |
| 717 const ProtocolHandler& handler) { | 717 const ProtocolHandler& handler) { |
| 718 // If called after the load command was issued this function will fail. | 718 // If called after the load command was issued this function will fail. |
| 719 DCHECK(!is_loaded_); | 719 DCHECK(!is_loaded_); |
| 720 RegisterProtocolHandler(handler); | 720 RegisterProtocolHandler(handler); |
| 721 SetDefault(handler); | 721 SetDefault(handler); |
| 722 } | 722 } |
| 723 | |
| 724 | |
| OLD | NEW |