| 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/external_protocol/external_protocol_handler.h" | 5 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <set> | 9 #include <set> |
| 8 | 10 |
| 9 #include "base/bind.h" | 11 #include "base/bind.h" |
| 10 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" |
| 11 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 12 #include "base/prefs/pref_registry_simple.h" | 15 #include "base/prefs/pref_registry_simple.h" |
| 13 #include "base/prefs/pref_service.h" | 16 #include "base/prefs/pref_service.h" |
| 14 #include "base/prefs/scoped_user_pref_update.h" | 17 #include "base/prefs/scoped_user_pref_update.h" |
| 15 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
| 16 #include "base/threading/thread.h" | 19 #include "base/threading/thread.h" |
| 17 #include "build/build_config.h" | 20 #include "build/build_config.h" |
| 18 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
| 19 #include "chrome/browser/platform_util.h" | 22 #include "chrome/browser/platform_util.h" |
| 20 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 // static | 325 // static |
| 323 void ExternalProtocolHandler::RegisterPrefs(PrefRegistrySimple* registry) { | 326 void ExternalProtocolHandler::RegisterPrefs(PrefRegistrySimple* registry) { |
| 324 registry->RegisterDictionaryPref(prefs::kExcludedSchemes); | 327 registry->RegisterDictionaryPref(prefs::kExcludedSchemes); |
| 325 } | 328 } |
| 326 | 329 |
| 327 // static | 330 // static |
| 328 void ExternalProtocolHandler::PermitLaunchUrl() { | 331 void ExternalProtocolHandler::PermitLaunchUrl() { |
| 329 DCHECK(base::MessageLoopForUI::IsCurrent()); | 332 DCHECK(base::MessageLoopForUI::IsCurrent()); |
| 330 g_accept_requests = true; | 333 g_accept_requests = true; |
| 331 } | 334 } |
| OLD | NEW |