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

Unified Diff: content/public/renderer/render_frame_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_frame_observer_tracker.h
diff --git a/content/public/renderer/render_frame_observer_tracker.h b/content/public/renderer/render_frame_observer_tracker.h
index 563a5c25c2337c998f123cb029d8cd14d994758c..90dfb17a7a190542edf817af649535fb73aafa23 100644
--- a/content/public/renderer/render_frame_observer_tracker.h
+++ b/content/public/renderer/render_frame_observer_tracker.h
@@ -53,17 +53,17 @@ class RenderFrameObserverTracker {
private:
const RenderFrame* render_frame_;
- static base::LazyInstance<
- std::map<const RenderFrame*, RenderFrameObserverTracker<T>*>>
- render_frame_map_;
+ static typename base::LazyInstance<
+ std::map<const RenderFrame*, RenderFrameObserverTracker<T>*>>::
+ DestructorAtExit render_frame_map_;
DISALLOW_COPY_AND_ASSIGN(RenderFrameObserverTracker<T>);
};
template <class T>
-base::LazyInstance<std::map<const RenderFrame*,
- RenderFrameObserverTracker<T>*>>
- RenderFrameObserverTracker<T>::render_frame_map_ =
+typename base::LazyInstance<
+ std::map<const RenderFrame*, RenderFrameObserverTracker<T>*>>::
+ DestructorAtExit RenderFrameObserverTracker<T>::render_frame_map_ =
LAZY_INSTANCE_INITIALIZER;
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698