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

Unified Diff: chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.cc

Issue 691253002: Move the Developer Website and Licenses links in the App Info dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/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(&params);
+}
+
views::Label* AppInfoPanel::CreateHeading(const base::string16& text) const {
views::Label* label = new views::Label(text);
label->SetHorizontalAlignment(gfx::ALIGN_LEFT);

Powered by Google App Engine
This is Rietveld 408576698