Commit 37560301 authored by antrim@chromium.org's avatar antrim@chromium.org

Use method that checks for autoupdate.

BUG=178514


Review URL: https://chromiumcodereview.appspot.com/13801007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192868 0039d316-1c4b-4281-b951-d872f2087c98
parent 8e432c7f
......@@ -25,6 +25,7 @@
#include "chrome/browser/chromeos/login/login_utils.h"
#include "chrome/browser/chromeos/login/user_manager.h"
#include "chrome/browser/chromeos/login/webui_screen_locker.h"
#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/signin/signin_manager.h"
......@@ -288,7 +289,9 @@ void ScreenLocker::EnableInput() {
void ScreenLocker::Signout() {
delegate_->ClearErrors();
content::RecordAction(UserMetricsAction("ScreenLocker_Signout"));
DBusThreadManager::Get()->GetSessionManagerClient()->StopSession();
// We expect that this call will not wait for any user input.
// If it changes at some point, we will need to force exit.
chrome::AttemptUserExit();
// Don't hide yet the locker because the chrome screen may become visible
// briefly.
......
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