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

Issue 1304943006: ProfileChooserVIew heap-use-after-free fix (Closed)

Created:
5 years, 3 months ago by shadi
Modified:
5 years, 3 months ago
Reviewers:
msw
CC:
chromium-reviews, tfarina, Roger Tawa OOO till Jul 10th
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not show avatar_bubble if we can't show avatar_menu When profile path is outside user_data_dir, the profile manager does not show an avatar_menu. This CL disables showing an avatar window if there is no avatar menu. BUG=527505 Committed: https://crrev.com/80acb6c51d9897918d73cf8b7a272d3878c93ddd Cr-Commit-Position: refs/heads/master@{#349191}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Set the parent window of profile_chooser_view #

Patch Set 3 : small fix #

Total comments: 3

Patch Set 4 : Do not show avatar_bubble if we can't show avatar_menu #

Total comments: 1

Patch Set 5 : update comments #

Total comments: 7

Patch Set 6 : re comments #

Patch Set 7 : remove un-needed import #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -0 lines) Patch
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc View 1 2 3 4 5 6 2 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (9 generated)
Evan Stade
https://codereview.chromium.org/1304943006/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/1304943006/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode706 chrome/browser/ui/views/profiles/profile_chooser_view.cc:706: browser_ = NULL; There are many places in this ...
5 years, 3 months ago (2015-09-03 17:38:39 UTC) #2
shadi
On 2015/09/03 17:38:39, Evan Stade wrote: > https://codereview.chromium.org/1304943006/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc > File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): > > https://codereview.chromium.org/1304943006/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode706 ...
5 years, 3 months ago (2015-09-03 19:12:25 UTC) #3
Evan Stade
https://codereview.chromium.org/1304943006/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/1304943006/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode615 chrome/browser/ui/views/profiles/profile_chooser_view.cc:615: BrowserList::AddObserver(this); So if we're not closing the bubble when ...
5 years, 3 months ago (2015-09-03 19:35:22 UTC) #4
shadi
msw@: This is actually a follow up on https://codereview.chromium.org/1311123003/ There the fix for the tests ...
5 years, 3 months ago (2015-09-10 01:40:35 UTC) #6
msw
https://codereview.chromium.org/1304943006/diff/40001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/1304943006/diff/40001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode568 chrome/browser/ui/views/profiles/profile_chooser_view.cc:568: BrowserView* browser_view = static_cast<BrowserView*>(browser->window()); nit: use BrowserView::GetBrowserViewForBrowser https://codereview.chromium.org/1304943006/diff/40001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode570 chrome/browser/ui/views/profiles/profile_chooser_view.cc:570: ...
5 years, 3 months ago (2015-09-10 23:42:00 UTC) #7
shadi
As mentioned in the bug, the problem was actually that the anchor_view was null in ...
5 years, 3 months ago (2015-09-12 01:35:03 UTC) #9
msw
https://codereview.chromium.org/1304943006/diff/80001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/1304943006/diff/80001/chrome/browser/ui/views/frame/browser_view.cc#newcode2525 chrome/browser/ui/views/frame/browser_view.cc:2525: // Do not show avatar bubble if there is ...
5 years, 3 months ago (2015-09-14 17:12:04 UTC) #10
Evan Stade
On 2015/09/14 17:12:04, msw wrote: > https://codereview.chromium.org/1304943006/diff/80001/chrome/browser/ui/views/frame/browser_view.cc > File chrome/browser/ui/views/frame/browser_view.cc (right): > > https://codereview.chromium.org/1304943006/diff/80001/chrome/browser/ui/views/frame/browser_view.cc#newcode2525 > ...
5 years, 3 months ago (2015-09-15 17:55:30 UTC) #11
msw
On 2015/09/15 17:55:30, Evan Stade (ooo) wrote: > On 2015/09/14 17:12:04, msw wrote: > > ...
5 years, 3 months ago (2015-09-15 18:25:10 UTC) #12
shadi1
On 2015/09/15 18:25:10, msw wrote: > On 2015/09/15 17:55:30, Evan Stade (ooo) wrote: > > ...
5 years, 3 months ago (2015-09-15 19:26:51 UTC) #15
msw
If this does indeed work in full-screen, single-profile, and other user-accessible edge cases; and if ...
5 years, 3 months ago (2015-09-15 19:44:36 UTC) #16
shadi1
https://codereview.chromium.org/1304943006/diff/140001/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc File chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc (right): https://codereview.chromium.org/1304943006/diff/140001/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc#newcode36 chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc:36: Profile* CreateTestingProfile(const std::string& profile_name) { On 2015/09/15 19:44:35, msw ...
5 years, 3 months ago (2015-09-15 20:47:43 UTC) #18
msw
https://codereview.chromium.org/1304943006/diff/140001/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc File chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc (right): https://codereview.chromium.org/1304943006/diff/140001/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc#newcode60 chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc:60: Profile* profile = On 2015/09/15 20:47:43, shadi1 wrote: > ...
5 years, 3 months ago (2015-09-15 21:40:46 UTC) #19
shadi
On 2015/09/15 21:40:46, msw wrote: > https://codereview.chromium.org/1304943006/diff/140001/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc > File chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc > (right): > > https://codereview.chromium.org/1304943006/diff/140001/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc#newcode60 ...
5 years, 3 months ago (2015-09-16 01:39:05 UTC) #20
msw
On 2015/09/16 01:39:05, shadi wrote: > On 2015/09/15 21:40:46, msw wrote: > > > https://codereview.chromium.org/1304943006/diff/140001/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc ...
5 years, 3 months ago (2015-09-16 01:41:03 UTC) #21
shadi
PTAL
5 years, 3 months ago (2015-09-16 02:24:05 UTC) #23
msw
lgtm
5 years, 3 months ago (2015-09-16 16:43:35 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304943006/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304943006/180001
5 years, 3 months ago (2015-09-16 18:43:16 UTC) #27
commit-bot: I haz the power
Committed patchset #7 (id:180001)
5 years, 3 months ago (2015-09-16 19:31:10 UTC) #28
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/80acb6c51d9897918d73cf8b7a272d3878c93ddd Cr-Commit-Position: refs/heads/master@{#349191}
5 years, 3 months ago (2015-09-16 19:31:51 UTC) #29
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:59:21 UTC) #30
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/80acb6c51d9897918d73cf8b7a272d3878c93ddd
Cr-Commit-Position: refs/heads/master@{#349191}

Powered by Google App Engine
This is Rietveld 408576698