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

Unified Diff: content/public/renderer/render_view_observer_tracker.h

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: Created 3 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
Index: content/public/renderer/render_view_observer_tracker.h
diff --git a/content/public/renderer/render_view_observer_tracker.h b/content/public/renderer/render_view_observer_tracker.h
index a05ed9429235a8462b2ecf53abefc76b46b3a227..a5eaefc7ca27cf5e224391205cd4f2f46e454e11 100644
--- a/content/public/renderer/render_view_observer_tracker.h
+++ b/content/public/renderer/render_view_observer_tracker.h
@@ -53,16 +53,18 @@ class RenderViewObserverTracker {
private:
const RenderView* render_view_;
- static base::LazyInstance<
- std::map<const RenderView*, RenderViewObserverTracker<T>*>>
- render_view_map_;
+ static typename base::LazyInstance<
+ std::map<const RenderView*, RenderViewObserverTracker<T>*>>::
+ DestructorAtExit render_view_map_;
DISALLOW_COPY_AND_ASSIGN(RenderViewObserverTracker<T>);
};
template <class T>
-base::LazyInstance<std::map<const RenderView*, RenderViewObserverTracker<T>*>>
- RenderViewObserverTracker<T>::render_view_map_ = LAZY_INSTANCE_INITIALIZER;
+typename base::LazyInstance<
+ std::map<const RenderView*, RenderViewObserverTracker<T>*>>::
+ DestructorAtExit RenderViewObserverTracker<T>::render_view_map_ =
+ LAZY_INSTANCE_INITIALIZER;
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698