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

Unified Diff: chrome/browser/resources/md_extensions/detail_view.js

Issue 2522303002: [MD Extensions] Add logic for opening the extension's home page (Closed)
Patch Set: add comment Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_extensions/detail_view.js
diff --git a/chrome/browser/resources/md_extensions/detail_view.js b/chrome/browser/resources/md_extensions/detail_view.js
index fb4323a4fb062413c4cea71e431da2ab6c9cde8c..5183e2efee29f4144f742d2701b095199ccdf3a4 100644
--- a/chrome/browser/resources/md_extensions/detail_view.js
+++ b/chrome/browser/resources/md_extensions/detail_view.js
@@ -52,6 +52,18 @@ cr.define('extensions', function() {
* @return {boolean}
* @private
*/
+ shouldShowHomepageButton_: function() {
+ // Note: we ignore |data.homePage.specified| - we use an extension's
+ // webstore entry as a homepage if the extension didn't explicitly specify
+ // a homepage. (|url| can still be unset in the case of unpacked
+ // extensions.)
+ return this.data.homePage.url.length > 0;
+ },
+
+ /**
+ * @return {boolean}
+ * @private
+ */
shouldShowOptionsButton_: function() {
return !!this.data.optionsPage;
},

Powered by Google App Engine
This is Rietveld 408576698