OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_handler.h" | 5 #include "chrome/browser/external_protocol_handler.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 NewRunnableFunction(&platform_util::OpenExternal, url)); | 173 NewRunnableFunction(&platform_util::OpenExternal, url)); |
174 #endif | 174 #endif |
175 } | 175 } |
176 | 176 |
177 // static | 177 // static |
178 void ExternalProtocolHandler::RegisterPrefs(PrefService* prefs) { | 178 void ExternalProtocolHandler::RegisterPrefs(PrefService* prefs) { |
179 prefs->RegisterDictionaryPref(prefs::kExcludedSchemes); | 179 prefs->RegisterDictionaryPref(prefs::kExcludedSchemes); |
180 } | 180 } |
181 | 181 |
182 // static | 182 // static |
183 void ExternalProtocolHandler::OnUserGesture() { | 183 void ExternalProtocolHandler::PermitLaunchUrl() { |
184 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); | 184 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); |
185 g_accept_requests = true; | 185 g_accept_requests = true; |
186 } | 186 } |
OLD | NEW |