Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: chrome/browser/ui/app_list/app_list_shower_views.cc

Issue 557833007: Remove Increment/DecrementKeepAliveCount from AppsClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/app_list/app_list_shower_views.h" 5 #include "chrome/browser/ui/app_list/app_list_shower_views.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "chrome/browser/apps/scoped_keep_alive.h"
9 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/app_list/app_list_shower_delegate.h" 11 #include "chrome/browser/ui/app_list/app_list_shower_delegate.h"
11 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" 12 #include "chrome/browser/ui/app_list/app_list_view_delegate.h"
12 #include "chrome/browser/ui/app_list/scoped_keep_alive.h"
13 #include "ui/app_list/views/app_list_view.h" 13 #include "ui/app_list/views/app_list_view.h"
14 #include "ui/gfx/geometry/point.h" 14 #include "ui/gfx/geometry/point.h"
15 #include "ui/gfx/screen.h" 15 #include "ui/gfx/screen.h"
16 16
17 AppListShower::AppListShower(AppListShowerDelegate* delegate) 17 AppListShower::AppListShower(AppListShowerDelegate* delegate)
18 : delegate_(delegate), 18 : delegate_(delegate),
19 profile_(NULL), 19 profile_(NULL),
20 app_list_(NULL), 20 app_list_(NULL),
21 window_icon_updated_(false) { 21 window_icon_updated_(false) {
22 } 22 }
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 FROM_HERE, 134 FROM_HERE,
135 base::Bind(&AppListShower::ResetKeepAlive, base::Unretained(this))); 135 base::Bind(&AppListShower::ResetKeepAlive, base::Unretained(this)));
136 return; 136 return;
137 } 137 }
138 ResetKeepAlive(); 138 ResetKeepAlive();
139 } 139 }
140 140
141 void AppListShower::ResetKeepAlive() { 141 void AppListShower::ResetKeepAlive() {
142 keep_alive_.reset(); 142 keep_alive_.reset();
143 } 143 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_views.cc ('k') | chrome/browser/ui/app_list/app_list_shower_views_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698