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

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

Issue 9293010: Merge 119773 - Move click-to-play out of chrome://flags. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/963/src
Patch Set: '' Created 8 years, 10 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) 2011 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.contentSettings', function() { 5 cr.define('options.contentSettings', function() {
6 const InlineEditableItemList = options.InlineEditableItemList; 6 const InlineEditableItemList = options.InlineEditableItemList;
7 const InlineEditableItem = options.InlineEditableItem; 7 const InlineEditableItem = options.InlineEditableItem;
8 const ArrayDataModel = cr.ui.ArrayDataModel; 8 const ArrayDataModel = cr.ui.ArrayDataModel;
9 9
10 /** 10 /**
11 * Creates a new exceptions list item. 11 * Creates a new exceptions list item.
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 this.contentType = parentNode.getAttribute('contentType'); 354 this.contentType = parentNode.getAttribute('contentType');
355 break; 355 break;
356 } 356 }
357 } 357 }
358 358
359 this.mode = this.getAttribute('mode'); 359 this.mode = this.getAttribute('mode');
360 360
361 var exceptionList = this; 361 var exceptionList = this;
362 362
363 // Whether the exceptions in this list allow an 'Ask every time' option. 363 // Whether the exceptions in this list allow an 'Ask every time' option.
364 this.enableAskOption = (this.contentType == 'plugins' && 364 this.enableAskOption = this.contentType == 'plugins';
365 templateData.enable_click_to_play);
366 365
367 this.autoExpands = true; 366 this.autoExpands = true;
368 this.reset(); 367 this.reset();
369 }, 368 },
370 369
371 /** 370 /**
372 * Creates an item to go in the list. 371 * Creates an item to go in the list.
373 * @param {Object} entry The element from the data model for this row. 372 * @param {Object} entry The element from the data model for this row.
374 */ 373 */
375 createItem: function(entry) { 374 createItem: function(entry) {
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 } 542 }
544 }; 543 };
545 544
546 return { 545 return {
547 ExceptionsListItem: ExceptionsListItem, 546 ExceptionsListItem: ExceptionsListItem,
548 ExceptionsAddRowListItem: ExceptionsAddRowListItem, 547 ExceptionsAddRowListItem: ExceptionsAddRowListItem,
549 ExceptionsList: ExceptionsList, 548 ExceptionsList: ExceptionsList,
550 ContentSettingsExceptionsArea: ContentSettingsExceptionsArea, 549 ContentSettingsExceptionsArea: ContentSettingsExceptionsArea,
551 }; 550 };
552 }); 551 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698