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

Unified Diff: ui/gfx/image/image.h

Issue 1773433002: Fix use-after-free in gfx::Image. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | ui/gfx/image/image.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image.h
diff --git a/ui/gfx/image/image.h b/ui/gfx/image/image.h
index ec05b26d8ffd0e7f45bdd2f4d27ca3fc59afa021..38a5ea9ac2502c95a51b8640fc547587d88207d4 100644
--- a/ui/gfx/image/image.h
+++ b/ui/gfx/image/image.h
@@ -183,7 +183,8 @@ class GFX_EXPORT Image {
internal::ImageRep* GetRepresentation(
RepresentationType rep_type, bool must_exist) const;
- // Stores a representation into the map.
+ // Stores a representation into the map. A representation of that type must
+ // not already be in the map.
void AddRepresentation(scoped_ptr<internal::ImageRep> rep) const;
// Internal class that holds all the representations. This allows the Image to
« no previous file with comments | « no previous file | ui/gfx/image/image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698