Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: chrome/browser/external_protocol_handler.cc

Issue 2884040: Rename ExternalProtocolHandler::OnUserGesture -> PermitLaunchUrl & call from EFD::HandleRequest (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: cr changes Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/external_protocol_handler.h ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/external_protocol_handler.h ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698