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

Issue 210673002: Revert of Delete "shutdown without closing browsers" path (Closed)

Created:
6 years, 9 months ago by michaeln
Modified:
6 years, 9 months ago
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org, tfarina
Visibility:
Public.

Description

Revert of Delete "shutdown without closing browsers" path (https://codereview.chromium.org/205963005/) Reason for revert: Didn't compile on Linux GTK builder. http://build.chromium.org/p/chromium.linux/builders/Linux%20GTK%20Builder/builds/1997 ../../chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc: In member function 'virtual void BookmarkBarGtk::BookmarkModelBeingDeleted(BookmarkModel*)': ../../chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc:896:8:error: 'ShuttingDownWithoutClosingBrowsers' is not a member of 'browser_shutdown' Original issue's description: > Delete "shutdown without closing browsers" > > Removing unused ShellDelegate::Shutdown() > > Added new PreShutdown to safely cleanup DisplayObserver. > > Chrome no longer access X during shutdown (except for deleting X window, which is safe), so normal SessionEnd > path should work. > > There is another issue when this happens during login screen, and I'll file a separate bug for it. > > BUG=336653 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259061 TBR=abodenha@chromium.org,thestig@chromium.org,oshima@chromium.org NOTREECHECKS=true NOTRY=true BUG=336653 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259085

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -19 lines) Patch
M ash/shell.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/shell_delegate.h View 1 chunk +2 lines, -3 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/test/test_shell_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_shutdown.h View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/browser_shutdown.cc View 4 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_extra_parts_x11.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/lifetime/application_lifetime.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/ash_init.cc View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc View 4 chunks +15 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
michaeln
Created Revert of Delete "shutdown without closing browsers" path
6 years, 9 months ago (2014-03-25 01:38:53 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaeln@chromium.org/210673002/1
6 years, 9 months ago (2014-03-25 01:39:42 UTC) #2
commit-bot: I haz the power
Change committed as 259085
6 years, 9 months ago (2014-03-25 01:41:09 UTC) #3
oshima
On 2014/03/25 01:41:09, I haz the power (commit-bot) wrote: > Change committed as 259085 oh, ...
6 years, 9 months ago (2014-03-25 01:42:17 UTC) #4
Matt Giuca
Yes :(
6 years, 9 months ago (2014-03-25 04:47:24 UTC) #5
Matt Giuca
If you're trying to re-land this CL (and don't have a GTK build set up), ...
6 years, 9 months ago (2014-03-25 04:52:13 UTC) #6
oshima
6 years, 9 months ago (2014-03-25 05:13:30 UTC) #7
Message was sent while issue was closed.
On 2014/03/25 04:52:13, Matt Giuca wrote:
> If you're trying to re-land this CL (and don't have a GTK build set up), I can
> confirm that this patch compiles on SVN 259084 (which was before your CL was
> reverted):
> 
> --- a/chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc
> +++ b/chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc
> @@ -891,11 +891,6 @@ void BookmarkBarGtk::BookmarkModelLoaded(BookmarkModel*
> model,
>  }
>  
>  void BookmarkBarGtk::BookmarkModelBeingDeleted(BookmarkModel* model) {
> -  // The bookmark model should never be deleted before us. This code exists
> -  // to check for regressions in shutdown code and not crash.
> -  if (!browser_shutdown::ShuttingDownWithoutClosingBrowsers())
> -    NOTREACHED();
> -
>    // Do minimal cleanup, presumably we'll be deleted shortly.
>    model_->RemoveObserver(this);
>    model_ = NULL;

Thank you for the revert. I was a bit surprised that this broke gtk build
as this should be chromeos only, but I apparently forgot that chromeos was
using gtk long time ago :)

Powered by Google App Engine
This is Rietveld 408576698