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

Side by Side Diff: chrome/browser/resources/options/browser_options_profile_list.js

Issue 863063002: Don't allow profile deletion in Metro mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: js nits Created 5 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
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 cr.define('options.browser_options', function() { 5 cr.define('options.browser_options', function() {
6 /** @const */ var DeletableItem = options.DeletableItem; 6 /** @const */ var DeletableItem = options.DeletableItem;
7 /** @const */ var DeletableItemList = options.DeletableItemList; 7 /** @const */ var DeletableItemList = options.DeletableItemList;
8 /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; 8 /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel;
9 9
10 /** 10 /**
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 }, 116 },
117 117
118 /** 118 /**
119 * Sets whether items in this list are deletable. 119 * Sets whether items in this list are deletable.
120 */ 120 */
121 set canDeleteItems(value) { 121 set canDeleteItems(value) {
122 this.canDeleteItems_ = value; 122 this.canDeleteItems_ = value;
123 }, 123 },
124 124
125 /** 125 /**
126 * @type {boolean} whether the items in this list are deletable.
127 */
128 get canDeleteItems() {
129 return this.canDeleteItems_;
130 },
131
132 /**
126 * If false, items in this list will not be deletable. 133 * If false, items in this list will not be deletable.
127 * @private 134 * @private
128 */ 135 */
129 canDeleteItems_: true, 136 canDeleteItems_: true,
130 }; 137 };
131 138
132 return { 139 return {
133 ProfileList: ProfileList 140 ProfileList: ProfileList
134 }; 141 };
135 }); 142 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/browser_options.js ('k') | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698