Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / external_protocol / external_protocol_observer.cc
blob2d3f10d2836a2bd68f281110b34b7b8e635af041
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
3 // found in the LICENSE file.
5 #include "chrome/browser/external_protocol/external_protocol_observer.h"
7 #include "chrome/browser/external_protocol/external_protocol_handler.h"
9 using content::WebContents;
11 DEFINE_WEB_CONTENTS_USER_DATA_KEY(ExternalProtocolObserver);
13 ExternalProtocolObserver::ExternalProtocolObserver(WebContents* web_contents)
14 : content::WebContentsObserver(web_contents) {
17 ExternalProtocolObserver::~ExternalProtocolObserver() {
20 void ExternalProtocolObserver::DidGetUserGesture() {
21 ExternalProtocolHandler::PermitLaunchUrl();