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

Side by Side Diff: chrome/browser/resources/md_extensions/service.js

Issue 1913353002: [MD Extensions] Add a details subpage, move to one list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: latest master Created 4 years, 7 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 cr.define('extensions', function() { 5 cr.define('extensions', function() {
6 'use strict'; 6 'use strict';
7 7
8 /** 8 /**
9 * @constructor 9 * @constructor
10 * @implements {extensions.ItemDelegate} 10 * @implements {extensions.ItemDelegate}
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 this.isDeleting_ = false; 101 this.isDeleting_ = false;
102 }.bind(this)); 102 }.bind(this));
103 }, 103 },
104 104
105 /** @override */ 105 /** @override */
106 setItemEnabled: function(id, isEnabled) { 106 setItemEnabled: function(id, isEnabled) {
107 chrome.management.setEnabled(id, isEnabled); 107 chrome.management.setEnabled(id, isEnabled);
108 }, 108 },
109 109
110 /** @override */ 110 /** @override */
111 showItemDetails: function(id) {},
112
113 /** @override */
114 setItemAllowedIncognito: function(id, isAllowedIncognito) { 111 setItemAllowedIncognito: function(id, isAllowedIncognito) {
115 chrome.developerPrivate.updateExtensionConfiguration({ 112 chrome.developerPrivate.updateExtensionConfiguration({
116 extensionId: id, 113 extensionId: id,
117 incognitoAccess: isAllowedIncognito, 114 incognitoAccess: isAllowedIncognito,
118 }); 115 });
119 }, 116 },
120 117
121 /** @override */ 118 /** @override */
122 inspectItemView: function(id, view) { 119 inspectItemView: function(id, view) {
123 chrome.developerPrivate.openDevTools({ 120 chrome.developerPrivate.openDevTools({
(...skipping 22 matching lines...) Expand all
146 /** @override */ 143 /** @override */
147 updateAllExtensions: function() { 144 updateAllExtensions: function() {
148 chrome.developerPrivate.autoUpdate(); 145 chrome.developerPrivate.autoUpdate();
149 }, 146 },
150 }; 147 };
151 148
152 cr.addSingletonGetter(Service); 149 cr.addSingletonGetter(Service);
153 150
154 return {Service: Service}; 151 return {Service: Service};
155 }); 152 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_extensions/manager.js ('k') | chrome/browser/resources/md_extensions/sidebar.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698