diff options
author | bartfab@google.com <bartfab@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-17 12:21:57 +0000 |
---|---|---|
committer | bartfab@google.com <bartfab@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-17 12:21:57 +0000 |
commit | 5b5495c70de838b40cc9e5990140fd9b2ad16987 (patch) | |
tree | b5b02aa5e8392edd79a275ffc613c0241e396414 /ash/shell/lock_view.cc | |
parent | bac6ffd0f853d003e235a29d51f138ec4d70f034 (diff) | |
download | chromium_src-5b5495c70de838b40cc9e5990140fd9b2ad16987.zip chromium_src-5b5495c70de838b40cc9e5990140fd9b2ad16987.tar.gz chromium_src-5b5495c70de838b40cc9e5990140fd9b2ad16987.tar.bz2 |
Add ash SessionStateDelegate
This CL refactors the ShellDelegate by adding a SessionStateDelegate to
which methods dealing with the session state can be moved. This cleans up
the huge ShellDelegate interface and paves the way for further Chrome OS
multiprofile work which will need to add several new methods related to
the session state.
This CL is only the first step. Several other methods should also move to
SessionStateDelegate but I do not want to overburden a single CL.
BUG=None
TEST=Manual and browser/unit tests
TBR=sky (for c/b/idle_chromeos.cc and c/chrome_browser_ui.gypi)
Review URL: https://codereview.chromium.org/14295008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194578 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell/lock_view.cc')
-rw-r--r-- | ash/shell/lock_view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ash/shell/lock_view.cc b/ash/shell/lock_view.cc index d60eba2b..235cb81 100644 --- a/ash/shell/lock_view.cc +++ b/ash/shell/lock_view.cc @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "ash/session_state_delegate.h" #include "ash/shell.h" -#include "ash/shell_delegate.h" #include "ash/shell_window_ids.h" #include "ash/shell/example_factory.h" #include "base/utf_string_conversions.h" @@ -64,7 +64,7 @@ class LockView : public views::WidgetDelegateView, // Overridden from views::WidgetDelegateView: virtual void WindowClosing() OVERRIDE { - Shell::GetInstance()->delegate()->UnlockScreen(); + Shell::GetInstance()->session_state_delegate()->UnlockScreen(); } // Overridden from views::ButtonListener: |