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

Issue 2946813002: Bookmark disappear first when closing browser (Closed)

Created:
3 years, 6 months ago by weidongg
Modified:
3 years, 5 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, oshima
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Bookmark disappear first when closing browser The CL prevents the bookmark from disappearing ahead of browser by avoiding bookmark's parent being set to nullptr at browser shutdown when web contents are null. BUG=669321 Review-Url: https://codereview.chromium.org/2946813002 Cr-Commit-Position: refs/heads/master@{#482423} Committed: https://chromium.googlesource.com/chromium/src/+/b5cae6d3aaf71d0f6186504da2f50fef77d20982

Patch Set 1 #

Total comments: 2

Patch Set 2 : Change solution #

Patch Set 3 : Please ignore this patch set #

Patch Set 4 : Deep reason #

Patch Set 5 : Add unittest #

Total comments: 1

Patch Set 6 : Return back to earlier fix #

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

Messages

Total messages: 39 (16 generated)
weidongg
3 years, 6 months ago (2017-06-19 22:55:41 UTC) #3
sky
https://codereview.chromium.org/2946813002/diff/1/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/2946813002/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode2182 chrome/browser/ui/views/frame/browser_view.cc:2182: bool show_bookmark_bar = contents && I think the bug ...
3 years, 6 months ago (2017-06-20 16:35:06 UTC) #4
sky
On 2017/06/20 16:35:06, sky wrote: > https://codereview.chromium.org/2946813002/diff/1/chrome/browser/ui/views/frame/browser_view.cc > File chrome/browser/ui/views/frame/browser_view.cc (right): > > https://codereview.chromium.org/2946813002/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode2182 > ...
3 years, 6 months ago (2017-06-20 16:35:16 UTC) #5
weidongg
In this case, I need to test whether the bookmark is detached from its parent ...
3 years, 6 months ago (2017-06-20 19:51:50 UTC) #6
sky
On Tue, Jun 20, 2017 at 12:51 PM, <weidongg@chromium.org> wrote: > In this case, I ...
3 years, 6 months ago (2017-06-21 00:22:58 UTC) #12
weidongg
On 2017/06/21 00:22:58, sky wrote: > On Tue, Jun 20, 2017 at 12:51 PM, <mailto:weidongg@chromium.org> ...
3 years, 6 months ago (2017-06-21 00:37:12 UTC) #13
sky
On 2017/06/21 00:37:12, weidongg wrote: > On 2017/06/21 00:22:58, sky wrote: > > On Tue, ...
3 years, 6 months ago (2017-06-21 14:48:01 UTC) #14
weidongg
On 2017/06/21 14:48:01, sky wrote: > On 2017/06/21 00:37:12, weidongg wrote: > > On 2017/06/21 ...
3 years, 6 months ago (2017-06-21 16:47:00 UTC) #17
sky
On Wed, Jun 21, 2017 at 9:47 AM, <weidongg@chromium.org> wrote: > On 2017/06/21 14:48:01, sky ...
3 years, 6 months ago (2017-06-21 19:42:39 UTC) #19
weidongg
On 2017/06/21 19:42:39, sky wrote: > On Wed, Jun 21, 2017 at 9:47 AM, <mailto:weidongg@chromium.org> ...
3 years, 6 months ago (2017-06-21 22:27:51 UTC) #20
sky
I see it now. MaybeShowBookmarkBar uses new_parent = null, which unparents. ok, so then the ...
3 years, 6 months ago (2017-06-22 03:25:46 UTC) #21
weidongg
On 2017/06/22 03:25:46, sky wrote: > I see it now. MaybeShowBookmarkBar uses new_parent = null, ...
3 years, 6 months ago (2017-06-22 18:12:06 UTC) #22
sky
On Thu, Jun 22, 2017 at 11:12 AM, <weidongg@chromium.org> wrote: > On 2017/06/22 03:25:46, sky ...
3 years, 6 months ago (2017-06-22 20:29:39 UTC) #23
weidongg
On 2017/06/22 20:29:39, sky wrote: > On Thu, Jun 22, 2017 at 11:12 AM, <mailto:weidongg@chromium.org> ...
3 years, 6 months ago (2017-06-22 20:52:53 UTC) #24
sky
Wouldn't that mean with your fix we attempt to do an unnecessary layout/resize? -Scott On ...
3 years, 6 months ago (2017-06-22 21:18:05 UTC) #25
weidongg
On 2017/06/22 21:18:05, sky wrote: > Wouldn't that mean with your fix we attempt to ...
3 years, 6 months ago (2017-06-23 03:03:24 UTC) #26
sky
I like avoiding setting the parent to null. As I mentioned early that seems like ...
3 years, 6 months ago (2017-06-23 03:13:36 UTC) #27
weidongg
Ok, I uploaded a new patch set and added unit test. Thanks.
3 years, 6 months ago (2017-06-23 23:07:55 UTC) #31
sky
https://codereview.chromium.org/2946813002/diff/80001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/2946813002/diff/80001/chrome/browser/ui/views/frame/browser_view.cc#newcode2173 chrome/browser/ui/views/frame/browser_view.cc:2173: bool show_bookmark_bar = contents && I liked your earlier ...
3 years, 5 months ago (2017-06-26 15:28:34 UTC) #32
weidongg
Yes, I agree. I uploaded a new patch set to return back to the earlier ...
3 years, 5 months ago (2017-06-26 16:49:14 UTC) #33
sky
LGTM
3 years, 5 months ago (2017-06-26 20:49:58 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2946813002/100001
3 years, 5 months ago (2017-06-26 20:51:45 UTC) #36
commit-bot: I haz the power
3 years, 5 months ago (2017-06-26 21:52:08 UTC) #39
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/b5cae6d3aaf71d0f6186504da2f5...

Powered by Google App Engine
This is Rietveld 408576698