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

Unified Diff: chrome/browser/ui/window_sizer.h

Issue 8585035: Use scoped_ptr for memory management rather than calling delete through WindowSizer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « no previous file | chrome/browser/ui/window_sizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/window_sizer.h
diff --git a/chrome/browser/ui/window_sizer.h b/chrome/browser/ui/window_sizer.h
index 2dcb4827a704462da430a99f2f22a19a349f06ed..20fe2d163e6017adeb1d20a849d3703d279254df 100644
--- a/chrome/browser/ui/window_sizer.h
+++ b/chrome/browser/ui/window_sizer.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
#include "ui/gfx/rect.h"
class Browser;
@@ -157,8 +158,8 @@ class WindowSizer {
gfx::Rect* bounds) const;
// Providers for persistent storage and monitor metrics.
- StateProvider* state_provider_;
- MonitorInfoProvider* monitor_info_provider_;
+ scoped_ptr<StateProvider> state_provider_;
+ scoped_ptr<MonitorInfoProvider> monitor_info_provider_;
DISALLOW_COPY_AND_ASSIGN(WindowSizer);
};
« no previous file with comments | « no previous file | chrome/browser/ui/window_sizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698