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

Side by Side Diff: chrome/browser/resources/extensions/extension_list.js

Issue 664473005: Hide second 'Details' link on extensions page if App Info dialog used (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Small fix for apps Created 6 years, 2 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 <include src="extension_error.js"> 5 <include src="extension_error.js">
6 6
7 /** 7 /**
8 * The type of the extension data object. The definition is based on 8 * The type of the extension data object. The definition is based on
9 * chrome/browser/ui/webui/extensions/extension_basic_info.cc 9 * chrome/browser/ui/webui/extensions/extension_basic_info.cc
10 * and 10 * and
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 } 301 }
302 302
303 // The 'Permissions' link. 303 // The 'Permissions' link.
304 var permissions = node.querySelector('.permissions-link'); 304 var permissions = node.querySelector('.permissions-link');
305 permissions.addEventListener('click', function(e) { 305 permissions.addEventListener('click', function(e) {
306 chrome.send('extensionSettingsPermissions', [extension.id]); 306 chrome.send('extensionSettingsPermissions', [extension.id]);
307 e.preventDefault(); 307 e.preventDefault();
308 }); 308 });
309 309
310 // The 'View in Web Store/View Web Site' link. 310 // The 'View in Web Store/View Web Site' link.
311 if (extension.homepageUrl) { 311 if (extension.homepageUrl && !extension.enableExtensionInfoDialog) {
312 var siteLink = node.querySelector('.site-link'); 312 var siteLink = node.querySelector('.site-link');
313 siteLink.href = extension.homepageUrl; 313 siteLink.href = extension.homepageUrl;
314 siteLink.textContent = loadTimeData.getString( 314 siteLink.textContent = loadTimeData.getString(
315 extension.homepageProvided ? 'extensionSettingsVisitWebsite' : 315 extension.homepageProvided ? 'extensionSettingsVisitWebsite' :
316 'extensionSettingsVisitWebStore'); 316 'extensionSettingsVisitWebStore');
317 siteLink.hidden = false; 317 siteLink.hidden = false;
318 } 318 }
319 319
320 if (extension.allow_reload) { 320 if (extension.allow_reload) {
321 // The 'Reload' link. 321 // The 'Reload' link.
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 $('overlay').addEventListener('cancelOverlay', function() { 553 $('overlay').addEventListener('cancelOverlay', function() {
554 this.optionsShown_ = false; 554 this.optionsShown_ = false;
555 }.bind(this)); 555 }.bind(this));
556 }, 556 },
557 }; 557 };
558 558
559 return { 559 return {
560 ExtensionsList: ExtensionsList 560 ExtensionsList: ExtensionsList
561 }; 561 };
562 }); 562 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/extensions/extensions.js » ('j') | chrome/browser/resources/extensions/extensions.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698