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

Unified Diff: chrome/browser/ui/gtk/extensions/extension_install_dialog_gtk.cc

Issue 145153002: Make sideloaded (externally installed) extensions display webstore info (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ChromeOS fix Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/extensions/extension_install_dialog_gtk.cc
diff --git a/chrome/browser/ui/gtk/extensions/extension_install_dialog_gtk.cc b/chrome/browser/ui/gtk/extensions/extension_install_dialog_gtk.cc
index af9eae3999b2829dd47f8b4d6d2b9b884aaa8829..c43226465443a526e54dae3c4c042155dd73f9f3 100644
--- a/chrome/browser/ui/gtk/extensions/extension_install_dialog_gtk.cc
+++ b/chrome/browser/ui/gtk/extensions/extension_install_dialog_gtk.cc
@@ -116,6 +116,7 @@ ExtensionInstallDialog::ExtensionInstallDialog(
bool show_retained_files = prompt.GetRetainedFileCount() > 0;
bool is_inline_install =
prompt.type() == ExtensionInstallPrompt::INLINE_INSTALL_PROMPT;
+ bool has_webstore_data = prompt.has_webstore_data();
bool is_bundle_install =
prompt.type() == ExtensionInstallPrompt::BUNDLE_INSTALL_PROMPT;
bool is_external_install =
@@ -198,7 +199,7 @@ ExtensionInstallDialog::ExtensionInstallDialog(
gtk_box_pack_start(GTK_BOX(heading_vbox), heading_label, center_heading,
center_heading, 0);
- if (is_inline_install) {
+ if (has_webstore_data) {
// Average rating (as stars) and number of ratings.
GtkWidget* stars_hbox = gtk_hbox_new(FALSE, 0);
gtk_box_pack_start(GTK_BOX(heading_vbox), stars_hbox, FALSE, FALSE, 0);

Powered by Google App Engine
This is Rietveld 408576698