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

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

Issue 899173002: Replace Webstore link with app info dialog link in chrome://apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implement mac AppInfoDialog methods Created 5 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
Index: chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc
diff --git a/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc b/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc
index 734f1f72633dd684c4e9a87fe29fe8017e6f3782..6e69445d43f812f9380840303d70de376330349c 100644
--- a/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc
+++ b/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc
@@ -20,6 +20,7 @@
#include "extensions/common/extension.h"
#include "extensions/common/manifest.h"
#include "ui/app_list/app_list_constants.h"
+#include "ui/app_list/app_list_switches.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
#include "ui/views/border.h"
@@ -29,6 +30,18 @@
#include "ui/views/widget/widget.h"
#include "ui/views/window/dialog_delegate.h"
+bool CanShowAppInfoDialog() {
+#if defined(OS_MACOSX)
+ return app_list::switches::IsMacViewsAppListListEnabled();
+#else
+ return true;
+#endif
+}
+
+gfx::Size GetAppInfoNativeDialogSize() {
+ return gfx::Size(380, 490);
+}
+
void ShowAppInfoInAppList(gfx::NativeWindow parent,
const gfx::Rect& app_list_bounds,
Profile* profile,

Powered by Google App Engine
This is Rietveld 408576698