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

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

Issue 2600723002: [Password Manager] Fix icons on chrome://settings/passwords (Closed)
Patch Set: Created 3 years, 12 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.passwordManager', function() { 5 cr.define('options.passwordManager', function() {
6 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; 6 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel;
7 /** @const */ var DeletableItemList = options.DeletableItemList; 7 /** @const */ var DeletableItemList = options.DeletableItemList;
8 /** @const */ var DeletableItem = options.DeletableItem; 8 /** @const */ var DeletableItem = options.DeletableItem;
9 /** @const */ var List = cr.ui.List; 9 /** @const */ var List = cr.ui.List;
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 /** 89 /**
90 * Helper function that creates an HTML element for displaying the origin of 90 * Helper function that creates an HTML element for displaying the origin of
91 * saved password. It also sets some properties in |item|. 91 * saved password. It also sets some properties in |item|.
92 * @param {Object} item A dictionary of data on the list item. 92 * @param {Object} item A dictionary of data on the list item.
93 * @return {Element} The element for displaying the origin of saved password. 93 * @return {Element} The element for displaying the origin of saved password.
94 */ 94 */
95 function createUrlDiv(item) { 95 function createUrlDiv(item) {
96 var urlDiv = cr.doc.createElement('div'); 96 var urlDiv = cr.doc.createElement('div');
97 urlDiv.className = 'favicon-cell url'; 97 urlDiv.className = 'favicon-cell url';
98 urlDiv.setAttribute('title', getTitleForPasswordOrigin(item)); 98 urlDiv.setAttribute('title', getTitleForPasswordOrigin(item));
99 urlDiv.style.backgroundImage = cr.icon.getFavicon('origin/' + item.url); 99 urlDiv.style.backgroundImage = cr.icon.getFavicon(item.url);
100 100
101 item.urlLink = createUrlLink(item, urlDiv); 101 item.urlLink = createUrlLink(item, urlDiv);
102 urlDiv.appendChild(item.urlLink); 102 urlDiv.appendChild(item.urlLink);
103 103
104 if (item.isAndroidUri && item.isClickable) { 104 if (item.isAndroidUri && item.isClickable) {
105 item.androidUriSuffix = cr.doc.createElement('span'); 105 item.androidUriSuffix = cr.doc.createElement('span');
106 item.androidUriSuffix.textContent = 106 item.androidUriSuffix.textContent =
107 loadTimeData.getString('androidUriSuffix'); 107 loadTimeData.getString('androidUriSuffix');
108 urlDiv.appendChild(item.androidUriSuffix); 108 urlDiv.appendChild(item.androidUriSuffix);
109 } 109 }
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 SHOWN_ORIGIN_FIELD: SHOWN_ORIGIN_FIELD, 543 SHOWN_ORIGIN_FIELD: SHOWN_ORIGIN_FIELD,
544 IS_ANDROID_URI_FIELD: IS_ANDROID_URI_FIELD, 544 IS_ANDROID_URI_FIELD: IS_ANDROID_URI_FIELD,
545 IS_CLICKABLE_FIELD: IS_CLICKABLE_FIELD, 545 IS_CLICKABLE_FIELD: IS_CLICKABLE_FIELD,
546 IS_SECURE_FIELD: IS_SECURE_FIELD, 546 IS_SECURE_FIELD: IS_SECURE_FIELD,
547 USERNAME_FIELD: USERNAME_FIELD, 547 USERNAME_FIELD: USERNAME_FIELD,
548 PASSWORD_FIELD: PASSWORD_FIELD, 548 PASSWORD_FIELD: PASSWORD_FIELD,
549 FEDERATION_FIELD: FEDERATION_FIELD, 549 FEDERATION_FIELD: FEDERATION_FIELD,
550 ORIGINAL_INDEX_FIELD: ORIGINAL_INDEX_FIELD 550 ORIGINAL_INDEX_FIELD: ORIGINAL_INDEX_FIELD
551 }; 551 };
552 }); 552 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698