| Index: chrome/browser/browser_process_impl.cc
|
| diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
|
| index abefbb145684c0d8ae01fe0b6332b8f690a84ce8..ee5e285c93ed7e6023be2ba8c118fcea9ca8df0a 100644
|
| --- a/chrome/browser/browser_process_impl.cc
|
| +++ b/chrome/browser/browser_process_impl.cc
|
| @@ -64,7 +64,7 @@
|
| #include "chrome/browser/status_icons/status_tray.h"
|
| #include "chrome/browser/thumbnails/render_widget_snapshot_taker.h"
|
| #include "chrome/browser/ui/bookmarks/bookmark_prompt_controller.h"
|
| -#include "chrome/browser/ui/browser_list.h"
|
| +#include "chrome/browser/ui/browser_finder.h"
|
| #include "chrome/browser/web_resource/promo_resource_service.h"
|
| #include "chrome/common/chrome_constants.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| @@ -987,7 +987,7 @@ void BrowserProcessImpl::ApplyAllowCrossOriginAuthPromptPolicy() {
|
| bool BrowserProcessImpl::CanAutorestartForUpdate() const {
|
| // Check if browser is in the background and if it needs to be restarted to
|
| // apply a pending update.
|
| - return BrowserList::empty() && chrome::WillKeepAlive() &&
|
| + return chrome::GetTotalBrowserCount() == 0 && chrome::WillKeepAlive() &&
|
| upgrade_util::IsUpdatePendingRestart();
|
| }
|
|
|
|
|