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

Side by Side Diff: chrome/common/extensions/docs/examples/extensions/plugin_settings/js/main.js

Issue 8396001: Add sample extension that allows setting plugin-specific content settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 2 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
(Empty)
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.
4
5 document.addEventListener('DOMContentLoaded', function() {
6 chrome.contentSettings.plugins.getResourceIdentifiers(function(r) {
7 if (chrome.extension.lastError) {
8 $('error').textContent =
9 "Error: " + chrome.extension.lastError.message;
10 return;
Mike West 2011/10/25 19:52:06 This means that if the extension ever errors out,
Bernhard Bauer 2011/10/26 13:55:18 I'm not sure there would be much to fix in that ca
11 }
12 var pluginList = $('plugin-list');
13 pluginSettings.ui.PluginList.decorate(pluginList);
14 pluginList.dataModel = new cr.ui.ArrayDataModel(r);
15 });
16 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698