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

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

Issue 11745015: Update references to the extension messaging APIs to point to the "runtime" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 /** 5 /**
6 * @fileoverview Main entry point that creates a new plug-in list on document 6 * @fileoverview Main entry point that creates a new plug-in list on document
7 * load. 7 * load.
8 */ 8 */
9 9
10 document.addEventListener('DOMContentLoaded', function() { 10 document.addEventListener('DOMContentLoaded', function() {
11 chrome.contentSettings.plugins.getResourceIdentifiers(function(r) { 11 chrome.contentSettings.plugins.getResourceIdentifiers(function(r) {
12 if (chrome.extension.lastError) { 12 if (chrome.runtime.lastError) {
13 $('error').textContent = 13 $('error').textContent =
14 'Error: ' + chrome.extension.lastError.message; 14 'Error: ' + chrome.runtime.lastError.message;
15 return; 15 return;
16 } 16 }
17 var pluginList = $('plugin-list'); 17 var pluginList = $('plugin-list');
18 pluginSettings.ui.PluginList.decorate(pluginList); 18 pluginSettings.ui.PluginList.decorate(pluginList);
19 pluginList.dataModel = new cr.ui.ArrayDataModel(r); 19 pluginList.dataModel = new cr.ui.ArrayDataModel(r);
20 }); 20 });
21 }); 21 });
22 22
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698