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

Unified Diff: chrome/browser/ui/views/web_intent_picker_views.cc

Issue 9651024: [Web Intents] Fix crash in views picker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/web_intent_picker_views.cc
diff --git a/chrome/browser/ui/views/web_intent_picker_views.cc b/chrome/browser/ui/views/web_intent_picker_views.cc
index e92a8370107e7c98556a6513bf32f87c9b718864..f0303745b01a008ca155c1cd42801aa2a1eca90d 100644
--- a/chrome/browser/ui/views/web_intent_picker_views.cc
+++ b/chrome/browser/ui/views/web_intent_picker_views.cc
@@ -190,12 +190,12 @@ ServiceButtonsView::~ServiceButtonsView() {
void ServiceButtonsView::Update() {
RemoveAllChildViews(true);
- if (model_->GetInstalledServiceCount() == 0)
- return;
-
views::GridLayout* grid_layout = new views::GridLayout(this);
SetLayoutManager(grid_layout);
+ if (model_->GetInstalledServiceCount() == 0)
+ return;
+
views::ColumnSet* cs = grid_layout->AddColumnSet(0);
cs->AddPaddingColumn(1, 0);
cs->AddColumn(views::GridLayout::FILL, views::GridLayout::CENTER, 0,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698