Index: chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.cc |
diff --git a/chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.cc b/chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.cc |
index fd1474799d1ce7d0888295e5f9e01e64946c461c..fb9bc84661834b1c108a88c26cdeea0ed18dbaaf 100644 |
--- a/chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.cc |
+++ b/chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.cc |
@@ -8,6 +8,7 @@ |
#include "ui/views/controls/label.h" |
#include "ui/views/layout/box_layout.h" |
#include "ui/views/layout/layout_constants.h" |
+#include "ui/views/widget/widget.h" |
namespace { |
@@ -22,6 +23,10 @@ AppInfoPanel::AppInfoPanel(Profile* profile, const extensions::Extension* app) |
AppInfoPanel::~AppInfoPanel() { |
} |
+void AppInfoPanel::Close() { |
+ GetWidget()->Close(); |
+} |
+ |
views::Label* AppInfoPanel::CreateHeading(const base::string16& text) const { |
views::Label* label = new views::Label(text); |
label->SetHorizontalAlignment(gfx::ALIGN_LEFT); |