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

Unified Diff: chrome/browser/ui/views/extensions/extension_install_dialog_view.cc

Issue 2683843004: harmony: update extension install dialog (Closed)
Patch Set: add newline Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_install_dialog_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
diff --git a/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc b/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
index 4d94178ce8777be45eea975a5015ca317932d3a6..fbda13da46fbd0681e426aee3a165a2f74e93d2e 100644
--- a/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
+++ b/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
@@ -245,13 +245,6 @@ void ExtensionInstallDialogView::InitView() {
user_count->SetAutoColorReadabilityEnabled(false);
user_count->SetEnabledColor(SK_ColorGRAY);
layout->AddView(user_count);
-
- layout->StartRow(0, column_set_id);
- views::Link* store_link = new views::Link(
- l10n_util::GetStringUTF16(IDS_EXTENSION_PROMPT_STORE_LINK));
- store_link->SetFontList(small_font_list);
- store_link->set_listener(this);
- layout->AddView(store_link);
}
if (prompt_->ShouldShowPermissions()) {
@@ -559,6 +552,16 @@ gfx::Size ExtensionInstallDialogView::GetPreferredSize() const {
return dialog_size_;
}
+views::View* ExtensionInstallDialogView::CreateExtraView() {
+ if (!prompt_->has_webstore_data())
+ return nullptr;
+
+ views::Link* store_link = new views::Link(
+ l10n_util::GetStringUTF16(IDS_EXTENSION_PROMPT_STORE_LINK));
+ store_link->set_listener(this);
+ return store_link;
+}
+
void ExtensionInstallDialogView::UpdateInstallResultHistogram(bool accepted)
const {
if (prompt_->type() == ExtensionInstallPrompt::INSTALL_PROMPT)
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_install_dialog_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698