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 c5f8d50e28bc7b968d56285bd89ea0da4188b9ca..4302a9664a079eba1fbaa99e0e04fc6925ee2642 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 |
@@ -4,11 +4,13 @@ |
#include "chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.h" |
+#include "chrome/browser/ui/browser_navigator.h" |
#include "ui/base/resource/resource_bundle.h" |
#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" |
+#include "url/gurl.h" |
namespace { |
@@ -27,6 +29,12 @@ void AppInfoPanel::Close() { |
GetWidget()->Close(); |
} |
+void AppInfoPanel::OpenLink(const GURL& url) { |
+ DCHECK(!url.is_empty()); |
+ chrome::NavigateParams params(profile_, url, ui::PAGE_TRANSITION_LINK); |
+ chrome::Navigate(¶ms); |
+} |
+ |
views::Label* AppInfoPanel::CreateHeading(const base::string16& text) const { |
views::Label* label = new views::Label(text); |
label->SetHorizontalAlignment(gfx::ALIGN_LEFT); |