summaryrefslogtreecommitdiff
path: root/chromium/chrome/renderer/resources/extensions/ad_view_deny.js
blob: 62036afb5c3e75446e1a854f5629c20a59b92f79 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

var addTagWatcher = require("tagWatcher").addTagWatcher;

// Output error message to console when using <adview> tag with no permission.
var errorMessage = "You do not have permission to use <adview> tag." +
  " Be sure to declare 'adview' permission in your manifest.";

addTagWatcher('ADVIEW', function() { console.error(errorMessage); });