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

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

Issue 10539169: Prototype version of the first-run dialog for Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed non-windows compilation errors. Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <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"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 int tab_contents_id, 87 int tab_contents_id,
88 bool prompt_user, 88 bool prompt_user,
89 ExternalProtocolHandler::Delegate* delegate) 89 ExternalProtocolHandler::Delegate* delegate)
90 : delegate_(delegate), 90 : delegate_(delegate),
91 escaped_url_(escaped_url), 91 escaped_url_(escaped_url),
92 render_process_host_id_(render_process_host_id), 92 render_process_host_id_(render_process_host_id),
93 tab_contents_id_(tab_contents_id), 93 tab_contents_id_(tab_contents_id),
94 prompt_user_(prompt_user) {} 94 prompt_user_(prompt_user) {}
95 95
96 virtual void SetDefaultWebClientUIState( 96 virtual void SetDefaultWebClientUIState(
97 ShellIntegration::DefaultWebClientUIState state) OVERRIDE { 97 ShellIntegration::DefaultWebClientUIState state,
98 ShellIntegration::SetDefaultWebClientResult unused_result) OVERRIDE {
98 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); 99 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type());
99 100
100 // If we are still working out if we're the default, or we've found 101 // If we are still working out if we're the default, or we've found
101 // out we definately are the default, we end here. 102 // out we definately are the default, we end here.
102 if (state == ShellIntegration::STATE_PROCESSING) { 103 if (state == ShellIntegration::STATE_PROCESSING) {
103 return; 104 return;
104 } 105 }
105 106
106 if (delegate_) 107 if (delegate_)
107 delegate_->FinishedProcessingCheck(); 108 delegate_->FinishedProcessingCheck();
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 // static 297 // static
297 void ExternalProtocolHandler::RegisterPrefs(PrefService* prefs) { 298 void ExternalProtocolHandler::RegisterPrefs(PrefService* prefs) {
298 prefs->RegisterDictionaryPref(prefs::kExcludedSchemes); 299 prefs->RegisterDictionaryPref(prefs::kExcludedSchemes);
299 } 300 }
300 301
301 // static 302 // static
302 void ExternalProtocolHandler::PermitLaunchUrl() { 303 void ExternalProtocolHandler::PermitLaunchUrl() {
303 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); 304 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type());
304 g_accept_requests = true; 305 g_accept_requests = true;
305 } 306 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698