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

Unified Diff: chrome/browser/ui/panels/panel.h

Issue 1778873002: Replace Increment/DecrementKeepAliveCount by ScopedKeepAlives (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@KAObserver
Patch Set: replace the commented dcheck by a dlog Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel.h
diff --git a/chrome/browser/ui/panels/panel.h b/chrome/browser/ui/panels/panel.h
index c4419022e4334d478e0e701b70e0ad592a80cfca..898696e4cb32af45291d8ddec7d96402b6530d69 100644
--- a/chrome/browser/ui/panels/panel.h
+++ b/chrome/browser/ui/panels/panel.h
@@ -29,6 +29,7 @@ class PanelCollection;
class PanelHost;
class PanelManager;
class Profile;
+class ScopedKeepAlive;
class StackedPanelCollection;
namespace content {
@@ -411,6 +412,8 @@ class Panel : public ui::BaseWindow,
// Icon showed in the task bar.
gfx::Image app_icon_;
+ scoped_ptr<ScopedKeepAlive> keep_alive_;
+
base::WeakPtrFactory<Panel> image_loader_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(Panel);
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698