|
This CL add a GetInstance() method to singleton classes instead of relying on the callers to use Singleton<T>.
In some cases I have used the LazyInstance<T> pattern as that was simpler.
This is a small step towards making all singleton classes use the Singleton<T> pattern within their code and not expect the callers to know about it.
I have selected all files under src/app and src/base which use Singleton<T> in this CL. Once this CL goes in I'll work on the rest of the files.
BUG= 65298
TEST=all existing tests should continue to pass.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68300
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+206 lines, -134 lines) |
Patch |
 |
M |
app/active_window_watcher_x.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
2 comments
|
Download
|
 |
M |
app/active_window_watcher_x.cc
|
View
|
|
1 chunk |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
app/surface/io_surface_support_mac.cc
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
base/crypto/cssm_init.cc
|
View
|
|
4 chunks |
+16 lines, -6 lines |
0 comments
|
Download
|
 |
M |
base/debug/trace_event.h
|
View
|
|
4 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
base/debug/trace_event.cc
|
View
|
|
2 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
base/debug/trace_event_win.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
base/debug/trace_event_win.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
base/debug/trace_event_win_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
base/i18n/file_util_icu.cc
|
View
|
|
6 chunks |
+27 lines, -19 lines |
0 comments
|
Download
|
 |
M |
base/logging_win.h
|
View
|
|
3 chunks |
+5 lines, -1 line |
2 comments
|
Download
|
 |
M |
base/logging_win.cc
|
View
|
|
5 chunks |
+8 lines, -12 lines |
0 comments
|
Download
|
 |
M |
base/mime_util_xdg.cc
|
View
|
|
13 chunks |
+15 lines, -12 lines |
0 comments
|
Download
|
 |
M |
base/string_util.cc
|
View
|
|
2 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
base/time_win.cc
|
View
|
|
4 chunks |
+18 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/printing/print_dialog_cloud_uitest.cc
|
View
|
|
11 chunks |
+29 lines, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/extension_message_bundle.h
|
View
|
|
1 chunk |
+0 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/extension_message_bundle.cc
|
View
|
|
2 chunks |
+16 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/extensions/event_bindings.cc
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/extensions/extension_process_bindings.cc
|
View
|
|
2 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
gfx/window_impl.cc
|
View
|
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_posix.cc
|
View
|
|
5 chunks |
+12 lines, -6 lines |
0 comments
|
Download
|
 |
M |
net/base/net_util.cc
|
View
|
|
3 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|