Index: chrome/browser/browser_process_impl.cc |
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc |
index a33776b7e29bf1233414b5572a138253accd42a0..832530011c580bb4d2062f725b3540c27bf06678 100644 |
--- a/chrome/browser/browser_process_impl.cc |
+++ b/chrome/browser/browser_process_impl.cc |
@@ -63,7 +63,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" |
@@ -959,7 +959,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(); |
} |