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

Issue 5519016: Add a new GetInstance() method for singleton classes used in chrome/browser files. (Closed)

Created:
10 years ago by Satish
Modified:
9 years, 7 months ago
Reviewers:
joth
CC:
chromium-reviews, tim (not reviewing), ncarter (slow), Alpha Left Google, idana, ben+cc_chromium.org, Sergey Ulanov, Raghu Simha, Erik does not do reviews, Paweł Hajdan Jr., Aaron Boodman, dmac, pam+watch_chromium.org, awong, garykac, brettw-cc_chromium.org, darin-cc_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Add a new GetInstance() method for singleton classes used in chrome/browser files. This CL includes half of the files under chrome/browser using Singleton<T>. The rest of the files will be sent in a second CL. In one case I used a LazyInstance<T> instead of Singleton<T> as that was simpler and necessary since T was a typedef and can't add member functions to it. BUG=65298 TEST=all existing tests should continue to pass. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68723

Patch Set 1 #

Patch Set 2 : . #

Total comments: 7

Patch Set 3 : . #

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -130 lines) Patch
M chrome/browser/automation/testing_automation_provider.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/browser_about_handler.h View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/browser_about_handler.cc View 1 2 6 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/browser_child_process_host.cc View 8 chunks +11 lines, -9 lines 0 comments Download
M chrome/browser/browser_main.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_main_gtk.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/browser_signin.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/child_process_launcher.cc View 5 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/dom_ui/imageburner_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/dom_ui/keyboard_overlay_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/dom_ui/login/login_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/dom_ui/menu_ui.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/dom_ui/mobile_setup_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/dom_ui/network_menu_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/dom_ui/register_page_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/dom_ui/system_info_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/crash_handler_host_linux.h View 1 2 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/crash_handler_host_linux.cc View 1 2 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/crash_handler_host_linux_stub.cc View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/cross_site_request_manager.h View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/cross_site_request_manager.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/bookmarks_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/dom_ui/bug_report_ui.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/dom_ui/chrome_url_data_manager.h View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/chrome_url_data_manager.cc View 8 chunks +14 lines, -8 lines 0 comments Download
M chrome/browser/dom_ui/conflicts_ui.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/dom_ui/downloads_dom_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/dom_ui/downloads_ui.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/dom_ui/filebrowse_ui.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/flags_ui.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/dom_ui/history2_ui.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/history_ui.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/keyboard_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/dom_ui/mediaplayer_ui.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/most_visited_handler.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/net_internals_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/dom_ui/new_tab_ui.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/options/browser_options_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/dom_ui/options/options_ui.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/plugins_ui.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/dom_ui/print_preview_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/dom_ui/remoting_ui.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/dom_ui/shared_resources_data_source.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/dom_ui/slideshow_ui.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/textfields_ui.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extensions_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/gpu_process_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/gtk/browser_window_gtk.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/memory_details.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/memory_details_linux.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/oom_priority_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/remoting/remoting_setup_flow.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/render_sandbox_host_linux.h View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_sandbox_host_linux.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sync_setup_wizard.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/translate_infobar_delegate.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/translate/translate_manager.h View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/translate/translate_manager.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/translate/translate_manager_unittest.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/app_modal_dialogs/app_modal_dialog.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_modal_dialogs/message_box_handler.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/zygote_host_linux.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/zygote_host_linux.cc View 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Satish
10 years ago (2010-12-08 16:11:33 UTC) #1
joth
Looks good, would be nice if we can remove the include pollution too (will need ...
10 years ago (2010-12-08 17:15:07 UTC) #2
Satish
I prefer forward declarations as well if the type is used in a small number ...
10 years ago (2010-12-08 17:56:52 UTC) #3
willchan no longer on Chromium
Apparently I was sloppier than I had intended in my review of your other change. ...
10 years ago (2010-12-08 18:08:19 UTC) #4
Satish
Thanks, I've now changed the headers to use forward declarations as suggested.
10 years ago (2010-12-08 23:03:58 UTC) #5
joth
LGTM [[ I just read the delta from patch set 1; assume the TOUCH_UI deletion ...
10 years ago (2010-12-08 23:25:13 UTC) #6
Satish
10 years ago (2010-12-08 23:31:24 UTC) #7
> [[ I just read the delta from patch set 1; assume the TOUCH_UI deletion was
> due to a rebase?

Yes it is, the diff from trunk doesn't touch that portion.

Powered by Google App Engine
This is Rietveld 408576698