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

Unified Diff: chrome/browser/ui/views/frame/glass_browser_frame_view.h

Issue 1406403007: Eliminate HICON leaks caused by creating icons from bitmap image. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: chrome/browser/ui/views/frame/glass_browser_frame_view.h
diff --git a/chrome/browser/ui/views/frame/glass_browser_frame_view.h b/chrome/browser/ui/views/frame/glass_browser_frame_view.h
index 21871be62ccd0e3aeabbb97369ce771e28f536ee..aa960a7dc3a5199a28659f27a035cec7ca087313 100644
--- a/chrome/browser/ui/views/frame/glass_browser_frame_view.h
+++ b/chrome/browser/ui/views/frame/glass_browser_frame_view.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_
#include "base/compiler_specific.h"
+#include "base/win/scoped_gdi_object.h"
#include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/window/non_client_view.h"
@@ -96,6 +97,12 @@ class GlassBrowserFrameView : public BrowserNonClientFrameView,
// The bounds of the ClientView.
gfx::Rect client_view_bounds_;
+ // The small icon created from the bitmap image of the window icon.
+ base::win::ScopedHICON small_window_icon_;
+
+ // The big icon created from the bitmap image of the window icon.
+ base::win::ScopedHICON big_window_icon_;
+
// Whether or not the window throbber is currently animating.
bool throbber_running_;

Powered by Google App Engine
This is Rietveld 408576698