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

Unified Diff: views/view.cc

Issue 8510076: Fix stale compositor references from ui::Layer (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
Index: views/view.cc
diff --git a/views/view.cc b/views/view.cc
index 9d5e303804a2df80ce1060ceaf5595dab89d9cec..1240f4a7aedeb18074f5d2023e86a68ce77c5bd7 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -1779,7 +1779,7 @@ void View::CreateLayer() {
for (int i = 0, count = child_count(); i < count; ++i)
child_at(i)->UpdateChildLayerVisibility(true);
- layer_.reset(new ui::Layer(NULL));
+ layer_.reset(new ui::Layer());
layer_->set_delegate(this);
UpdateParentLayers();

Powered by Google App Engine
This is Rietveld 408576698