Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
|
grt (UTC plus 2)
2012/06/21 15:18:43
you can remove this file from the CL if this is th
motek.
2012/06/21 18:28:10
Done.
| |
| 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/external_protocol/external_protocol_handler.h" | 5 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 296 // static | 296 // static |
| 297 void ExternalProtocolHandler::RegisterPrefs(PrefService* prefs) { | 297 void ExternalProtocolHandler::RegisterPrefs(PrefService* prefs) { |
| 298 prefs->RegisterDictionaryPref(prefs::kExcludedSchemes); | 298 prefs->RegisterDictionaryPref(prefs::kExcludedSchemes); |
| 299 } | 299 } |
| 300 | 300 |
| 301 // static | 301 // static |
| 302 void ExternalProtocolHandler::PermitLaunchUrl() { | 302 void ExternalProtocolHandler::PermitLaunchUrl() { |
| 303 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); | 303 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); |
| 304 g_accept_requests = true; | 304 g_accept_requests = true; |
| 305 } | 305 } |
| OLD | NEW |