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

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: Dan's Created 4 years, 8 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 this.promptIsShowing_ = false; 104 this.promptIsShowing_ = false;
105 }.bind(this)); 105 }.bind(this));
106 }, 106 },
107 107
108 /** @override */ 108 /** @override */
109 setItemEnabled: function(id, isEnabled) { 109 setItemEnabled: function(id, isEnabled) {
110 chrome.management.setEnabled(id, isEnabled); 110 chrome.management.setEnabled(id, isEnabled);
111 }, 111 },
112 112
113 /** @override */ 113 /** @override */
114 showItemDetails: function(id) {}, 114 showItemDetails: function(id) {
115 var matchesId = function(extension) { return extension.id == id; };
116 var data = assert(this.extensions_.filter(matchesId)[0]);
117 this.manager_.showDetailsFor(data);
118 },
115 119
116 /** @override */ 120 /** @override */
117 setItemAllowedIncognito: function(id, isAllowedIncognito) { 121 setItemAllowedIncognito: function(id, isAllowedIncognito) {
118 chrome.developerPrivate.updateExtensionConfiguration({ 122 chrome.developerPrivate.updateExtensionConfiguration({
119 extensionId: id, 123 extensionId: id,
120 incognitoAccess: isAllowedIncognito, 124 incognitoAccess: isAllowedIncognito,
121 }); 125 });
122 }, 126 },
123 127
124 /** @override */ 128 /** @override */
(...skipping 24 matching lines...) Expand all
149 /** @override */ 153 /** @override */
150 updateAllExtensions: function() { 154 updateAllExtensions: function() {
151 chrome.developerPrivate.autoUpdate(); 155 chrome.developerPrivate.autoUpdate();
152 }, 156 },
153 }; 157 };
154 158
155 cr.addSingletonGetter(Service); 159 cr.addSingletonGetter(Service);
156 160
157 return {Service: Service}; 161 return {Service: Service};
158 }); 162 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698