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

Issue 10831253: Only compute LocationBarView::AvailableWidth as needed. (Closed)

Created:
8 years, 4 months ago by msw
Modified:
8 years, 4 months ago
CC:
chromium-reviews, tfarina, Alexei Svitkine (slow)
Visibility:
Public.

Description

Only compute LocationBarView::AvailableWidth as needed. NOTE: THIS IS NOT A CRASH FIX!!! It's only an adjustment to reduce unnecessary work in potentially crashy code paths :-/ BUG=141702 TEST=no location bar layout regressions; fewer crashes? Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151118

Patch Set 1 #

Patch Set 2 : Use const naming for kMaxEditWidth. #

Total comments: 2

Patch Set 3 : Restore max_edit_width naming. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -6 lines) Patch
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 2 3 chunks +5 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
msw
Hey Scott, please take a look at this small CL; thanks!
8 years, 4 months ago (2012-08-10 01:26:13 UTC) #1
Alexei Svitkine (slow)
https://chromiumcodereview.appspot.com/10831253/diff/3002/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://chromiumcodereview.appspot.com/10831253/diff/3002/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode695 chrome/browser/ui/views/location_bar/location_bar_view.cc:695: const int kMaxEditWidth = location_entry_->GetMaxEditWidth(entry_width); This is not the ...
8 years, 4 months ago (2012-08-10 15:31:52 UTC) #2
sky
LGTM once you fix the name
8 years, 4 months ago (2012-08-10 15:36:02 UTC) #3
msw
On 2012/08/10 15:31:52, Alexei Svitkine wrote: > https://chromiumcodereview.appspot.com/10831253/diff/3002/chrome/browser/ui/views/location_bar/location_bar_view.cc > File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): > > https://chromiumcodereview.appspot.com/10831253/diff/3002/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode695 ...
8 years, 4 months ago (2012-08-10 15:38:07 UTC) #4
msw
Please take another look; thanks. https://chromiumcodereview.appspot.com/10831253/diff/3002/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://chromiumcodereview.appspot.com/10831253/diff/3002/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode695 chrome/browser/ui/views/location_bar/location_bar_view.cc:695: const int kMaxEditWidth = ...
8 years, 4 months ago (2012-08-10 15:49:21 UTC) #5
msw
doh, missed sky's note, landing.
8 years, 4 months ago (2012-08-10 15:49:45 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/10831253/10002
8 years, 4 months ago (2012-08-10 15:50:00 UTC) #7
Alexei Svitkine (slow)
LGTM
8 years, 4 months ago (2012-08-10 16:37:52 UTC) #8
commit-bot: I haz the power
Try job failure for 10831253-10002 (retry) on win_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 4 months ago (2012-08-10 18:48:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/10831253/10002
8 years, 4 months ago (2012-08-10 19:11:06 UTC) #10
commit-bot: I haz the power
8 years, 4 months ago (2012-08-10 20:37:01 UTC) #11
Change committed as 151118

Powered by Google App Engine
This is Rietveld 408576698