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

Unified Diff: chrome/browser/first_run/try_chrome_dialog_view.cc

Issue 736613002: Makes Separator more configurable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Width from layout Created 6 years, 1 month 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
« no previous file with comments | « no previous file | ui/views/controls/separator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/first_run/try_chrome_dialog_view.cc
diff --git a/chrome/browser/first_run/try_chrome_dialog_view.cc b/chrome/browser/first_run/try_chrome_dialog_view.cc
index d9d95b567981a09b47096e4cfddaea000eb2506d..7e5671b71051c172d3ba5b0514332ee7dee445ca 100644
--- a/chrome/browser/first_run/try_chrome_dialog_view.cc
+++ b/chrome/browser/first_run/try_chrome_dialog_view.cc
@@ -269,8 +269,7 @@ TryChromeDialogView::Result TryChromeDialogView::ShowModal(
layout->Layout(root_view);
gfx::Size preferred = layout->GetPreferredSize(root_view);
if (separator) {
- int separator_height = separator->GetPreferredSize().height();
- separator->SetSize(gfx::Size(preferred.width(), separator_height));
+ separator->SetSize(preferred.width());
sky 2014/11/19 16:10:17 Separator::SetSize is much different than View::Se
}
gfx::Rect pos = ComputeWindowPosition(preferred.width(), preferred.height(),
« no previous file with comments | « no previous file | ui/views/controls/separator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698