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

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

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again 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
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | content/public/renderer/render_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | content/public/renderer/render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698