Commit 2b3b9114 authored by ben@chromium.org's avatar ben@chromium.org

Replace BrowserList in Sync setup with application lifetime functions.

http://crbug.com/129187
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10412033

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138312 0039d316-1c4b-4281-b951-d872f2087c98
parent 06d2b36b
......@@ -15,6 +15,7 @@
#include "base/values.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/google/google_util.h"
#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_info_cache.h"
#include "chrome/browser/profiles/profile_manager.h"
......@@ -23,8 +24,6 @@
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/webui/signin/login_ui_service.h"
#include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
#include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h"
......@@ -818,7 +817,7 @@ void SyncSetupHandler::HandleShowErrorUI(const ListValue* args) {
#if defined(OS_CHROMEOS)
if (service->GetAuthError().state() != GoogleServiceAuthError::NONE) {
DLOG(INFO) << "Signing out the user to fix a sync error.";
BrowserList::GetLastActive()->ExecuteCommand(IDC_EXIT);
browser::AttemptUserExit();
return;
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment