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

Unified Diff: app/win/scoped_prop.h

Issue 5184009: Revert 66784 - Converts usage of SetProp/GetProp to a map. Even after making ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 | « app/view_prop_unittest.cc ('k') | chrome/browser/external_tab_container_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/win/scoped_prop.h
===================================================================
--- app/win/scoped_prop.h (revision 66785)
+++ app/win/scoped_prop.h (working copy)
@@ -18,12 +18,6 @@
// cleanup. ScopedProp must be destroyed before the window is destroyed, else
// you're going to leak a property, which could lead to failure to set a
// property later on.
-//
-// *WARNING*
-// SetProp is very fragile. SetProp makes use of a finite chunk of memory that
-// is very easy to exhaust. Unless you need to share a property across process
-// boundaries you should instead use ViewProp, which does not cause leaks at the
-// window manager.
class ScopedProp {
public:
// Registers the key value pair for the specified window. ScopedProp does not
« no previous file with comments | « app/view_prop_unittest.cc ('k') | chrome/browser/external_tab_container_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698