summaryrefslogtreecommitdiffstats
path: root/ash/shell.h
diff options
context:
space:
mode:
authorscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-15 06:31:02 +0000
committerscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-15 06:31:02 +0000
commit04939794970b9fd368a0043a830892773064b45c (patch)
tree189f33f09dbb70e83e881026fd34fc2f2837fba1 /ash/shell.h
parentb0ff83de884fa15d019a05faf9a8b987681d51c1 (diff)
downloadchromium_src-04939794970b9fd368a0043a830892773064b45c.zip
chromium_src-04939794970b9fd368a0043a830892773064b45c.tar.gz
chromium_src-04939794970b9fd368a0043a830892773064b45c.tar.bz2
fix Screen leak in ash tests
valgrind memory fyi here: http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20OS%20%28valgrind%29%284%29/builds/14345/steps/memory%20test%3A%20unit/logs/stdio TBR=ben@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/11146011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161829 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell.h')
-rw-r--r--ash/shell.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ash/shell.h b/ash/shell.h
index 2cf4b93..2f08927 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -314,7 +314,7 @@ class ASH_EXPORT Shell : internal::SystemModalContainerEventFilterDelegate{
// TODO(oshima): Remove methods that are moved to RootWindowController.
Launcher* launcher();
- const ScreenAsh* screen() { return screen_; }
+ const ScreenAsh* screen() { return screen_.get(); }
// Force the shelf to query for it's current visibility state.
void UpdateShelfVisibility();
@@ -411,7 +411,7 @@ class ASH_EXPORT Shell : internal::SystemModalContainerEventFilterDelegate{
// when the screen is initially created.
static bool initially_hide_cursor_;
- ScreenAsh* screen_;
+ scoped_ptr<ScreenAsh> screen_;
// Active root window. Never becomes NULL during the session.
aura::RootWindow* active_root_window_;