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

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

Issue 13925019: fix GridLayout::CreatePanel for new style dialogs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 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/extensions/extension_uninstall_dialog_view.cc
diff --git a/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc b/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc
index f438100d572a514caed57c1bedbedad4f0d3e4ee..cb7680f3b92ed0a563a715bc6d45b4033919a48b 100644
--- a/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc
+++ b/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc
@@ -202,7 +202,6 @@ string16 ExtensionUninstallDialogDelegateView::GetWindowTitle() const {
return l10n_util::GetStringUTF16(IDS_EXTENSION_UNINSTALL_PROMPT_TITLE);
}
-
gfx::Size ExtensionUninstallDialogDelegateView::GetPreferredSize() {
int width = kRightColumnWidth;
width += kIconSize;
@@ -216,7 +215,8 @@ gfx::Size ExtensionUninstallDialogDelegateView::GetPreferredSize() {
}
void ExtensionUninstallDialogDelegateView::Layout() {
- int x = views::kPanelHorizMargin;
+ int x = DialogDelegate::UseNewStyle() ? views::kButtonHEdgeMarginNew :
+ views::kPanelHorizMargin;
int y = views::kPanelVertMargin;
heading_->SizeToFit(kRightColumnWidth);

Powered by Google App Engine
This is Rietveld 408576698