|
Add a convenience typedef LazyInstance<T>::Leaky to avoid repeating T.
Converted the first 20 or so hits for LeakyLazyInstanceTraits on codesearch to
demonstrate the benefit at callsites. The real change is base/lazy_instance.h;
everything else is example.
BUG=none
TEST=none
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=118754
Total comments: 4
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+33 lines, -47 lines) |
Patch |
![](/static/closedtriangle.gif) |
M |
base/android/jni_android.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
base/debug/trace_event.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
base/lazy_instance.h
|
View
|
1
2
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
base/lazy_instance_unittest.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
base/nix/mime_util_xdg.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
base/threading/watchdog.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
base/tracked_objects.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
base/tracked_objects.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
base/win/sampling_profiler.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
chrome/common/profiling.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
crypto/nss_util.cc
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
media/base/media_log.cc
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
net/base/dns_reloader.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
net/base/net_util.cc
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
net/base/test_root_certs.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
net/base/x509_certificate.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
net/ocsp/nss_ocsp.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
printing/pdf_metafile_cg_mac.cc
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
ui/gfx/gl/gl_context.cc
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
ui/gfx/gl/gl_surface.cc
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
Total messages: 15 (0 generated)
|