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

Issue 11365181: Remove GetExtensionService from Profile. (Closed)

Created:
8 years, 1 month ago by Miranda Callahan
Modified:
8 years ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, yoshiki+watch_chromium.org, rginda+watch_chromium.org, dmazzoni+watch_chromium.org, stevenjb+watch_chromium.org, aboxhall+watch_chromium.org, kkania, dennis_jeffrey, chromium-apps-reviews_chromium.org, dyu1, yuzo+watch_chromium.org, oshima+watch_chromium.org, ctguil+watch_chromium.org, zork+watch_chromium.org, hashimoto+watch_chromium.org, davidbarr+watch_chromium.org, Aaron Boodman, anantha, robertshield, dtseng+watch_chromium.org, James Su, davemoore+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Remove GetExtensionService calls and replace with PKSF calls through the ExtensionSystem. Extension services were made into ProfileKeyedServices a while ago; this replaces the deprecated calls that ran directly through the Profile object. This is about half of the total GetExtensionService calls in the codebase, but this CL is already ridiculously large. BUG= http://code.google.com/p/chromium/issues/detail?id=104095 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170497

Patch Set 1 #

Patch Set 2 : fixed debugger dependencies #

Patch Set 3 : more fixery #

Patch Set 4 : rebase #

Patch Set 5 : fix chromeos #

Patch Set 6 : fix more tests #

Patch Set 7 : fixery #

Patch Set 8 : fix compile errors #

Patch Set 9 : remove base/scoped_temp_dir #

Patch Set 10 : another fix #

Patch Set 11 : fix db unit tests #

Patch Set 12 : tweaks #

Total comments: 2

Patch Set 13 : response to sky #

Total comments: 18

Patch Set 14 : response to yoz #

Patch Set 15 : response to review #

Patch Set 16 : reeeebase #

Patch Set 17 : replace missing extension_system include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+551 lines, -300 lines) Patch
M chrome/browser/autocomplete/keyword_provider.cc View 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/automation/automation_provider_json.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/automation/automation_provider_observers.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/automation/automation_util.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +14 lines, -7 lines 0 comments Download
M chrome/browser/background/background_application_list_model.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/background/background_application_list_model_unittest.cc View 1 2 3 4 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/background/background_contents_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +17 lines, -9 lines 0 comments Download
M chrome/browser/background/background_mode_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +28 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/accessibility/accessibility_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/file_handler_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/extensions/input_method_api.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/wallpaper_manager_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/help_app_launcher.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/login_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/offline/offline_load_page.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/debugger/devtools_sanity_browsertest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/debugger/devtools_window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/download/download_crx_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/all_urls_apitest.cc View 1 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/app/app_api.cc View 1 4 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/content_settings/content_settings_api.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/extension_action/browser_action_apitest.cc View 1 4 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/extension_action/page_action_apitest.cc View 1 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/extension_action/page_as_browser_action_apitest.cc View 1 4 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/extension_action/script_badge_apitest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/font_settings/font_settings_api.cc View 1 2 3 4 5 6 7 8 9 10 11 15 16 5 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/management/management_api_browsertest.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/management/management_apitest.cc View 1 4 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/management/management_browsertest.cc View 1 2 7 chunks +14 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/preference/preference_api.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_apitest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/extensions/app_notification_browsertest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/app_process_apitest.cc View 1 8 chunks +15 lines, -13 lines 0 comments Download
M chrome/browser/extensions/browser_action_apitest.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/context_menu_matcher.cc View 1 2 5 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/extensions/crx_installer_browsertest.cc View 1 5 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/extensions/event_router.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 9 chunks +18 lines, -15 lines 0 comments Download
M chrome/browser/extensions/extension_apitest.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 2 3 4 5 6 5 chunks +16 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_context_menu_model.cc View 1 2 3 3 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_keybinding_registry.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_nacl_browsertest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_startup_browsertest.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_toolbar_model_browsertest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/navigation_observer.cc View 1 2 3 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/extensions/options_page_apitest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/page_action_browsertest.cc View 1 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/extensions/permissions_updater.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/plugin_apitest.cc View 1 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/extensions/process_management_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/settings/settings_frontend.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/settings/settings_frontend_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +21 lines, -10 lines 0 comments Download
M chrome/browser/extensions/settings/settings_sync_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/extensions/settings/settings_test_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/extensions/settings/settings_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/extensions/user_script_master.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_render_view_host_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/speech/speech_input_extension_manager.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/app_notification_data_type_controller.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/task_manager/task_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/themes/theme_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/themes/theme_syncable_service.cc View 1 2 3 4 5 6 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/apps_model_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_item.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +17 lines, -11 lines 0 comments Download
M chrome/browser/ui/ash/app_sync_ui_state.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc View 1 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_action_context_menu.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_browsertest.cc View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/browser_actions_container.cc View 1 2 6 chunks +13 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/browser_actions_container_browsertest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/select_file_dialog_extension.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/extension_icon_source.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Miranda Callahan
This is a refactoring CL, so it's very large, but very nonthreatening, I hope. There ...
8 years, 1 month ago (2012-11-20 17:53:39 UTC) #1
Elliot Glaysher
gtk lgtm
8 years, 1 month ago (2012-11-20 18:18:39 UTC) #2
akalin
sync lgtm
8 years, 1 month ago (2012-11-20 18:22:25 UTC) #3
bulach
geolocation lgtm, thanks!
8 years, 1 month ago (2012-11-20 18:22:57 UTC) #4
hans
speech lgtm
8 years, 1 month ago (2012-11-20 18:47:18 UTC) #5
dmazzoni
accessibility lgtm
8 years, 1 month ago (2012-11-20 18:48:30 UTC) #6
stevenjb
chrome/browser/notifications LGTM
8 years, 1 month ago (2012-11-20 18:48:53 UTC) #7
rkc
On 2012/11/20 18:48:53, stevenjb (chromium) wrote: > chrome/browser/notifications LGTM kiosk mode lgtm
8 years, 1 month ago (2012-11-20 19:46:26 UTC) #8
sky
https://chromiumcodereview.appspot.com/11365181/diff/15019/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://chromiumcodereview.appspot.com/11365181/diff/15019/chrome/browser/chrome_content_browser_client.cc#newcode643 chrome/browser/chrome_content_browser_client.cc:643: ExtensionService* extension_service = Does ::Get(profile) deal with NULL? If ...
8 years, 1 month ago (2012-11-20 21:04:54 UTC) #9
Miranda Callahan
Thanks, Scott -- yes, Get(Profile) does correctly return NULL for this case. Fixed. https://chromiumcodereview.appspot.com/11365181/diff/15019/chrome/browser/chrome_content_browser_client.cc File ...
8 years, 1 month ago (2012-11-20 21:36:09 UTC) #10
sky
LGTM
8 years, 1 month ago (2012-11-20 22:12:59 UTC) #11
Yoyo Zhou
Nice progress so far. https://chromiumcodereview.appspot.com/11365181/diff/22115/chrome/browser/extensions/settings/settings_frontend_unittest.cc File chrome/browser/extensions/settings/settings_frontend_unittest.cc (right): https://chromiumcodereview.appspot.com/11365181/diff/22115/chrome/browser/extensions/settings/settings_frontend_unittest.cc#newcode97 chrome/browser/extensions/settings/settings_frontend_unittest.cc:97: ExtensionServiceInterface* esi = static_cast<ExtensionServiceInterface*>( I ...
8 years, 1 month ago (2012-11-21 00:27:12 UTC) #12
yurys
debugger lgtm!
8 years, 1 month ago (2012-11-21 06:34:30 UTC) #13
yoshiki
task_manager lgtm
8 years ago (2012-11-26 16:29:30 UTC) #14
pkotwicz
themes LGTM
8 years ago (2012-11-26 16:35:35 UTC) #15
DaveMoore
chromeos lgtm
8 years ago (2012-11-26 17:13:17 UTC) #16
xiyuan
app_list LGTM
8 years ago (2012-11-26 17:40:16 UTC) #17
Paweł Hajdan Jr.
automation & download LGTM nit: I think it'd be better to just ask chrome/-wide OWNERS ...
8 years ago (2012-11-26 18:21:46 UTC) #18
Miranda Callahan
Thanks, all -- and thanks especially for your comments, Yoz -- please take another look. ...
8 years ago (2012-11-26 22:14:23 UTC) #19
Yoyo Zhou
LGTM https://codereview.chromium.org/11365181/diff/22115/chrome/browser/extensions/settings/settings_test_util.cc File chrome/browser/extensions/settings/settings_test_util.cc (right): https://codereview.chromium.org/11365181/diff/22115/chrome/browser/extensions/settings/settings_test_util.cc#newcode123 chrome/browser/extensions/settings/settings_test_util.cc:123: static_cast<ExtensionServiceInterface*>(&extension_service_); On 2012/11/26 22:14:24, Miranda Callahan wrote: > ...
8 years ago (2012-11-26 22:58:03 UTC) #20
Nico
chrome.gyp lgtm
8 years ago (2012-11-26 23:31:28 UTC) #21
Miranda Callahan
https://codereview.chromium.org/11365181/diff/22115/chrome/browser/extensions/settings/settings_test_util.cc File chrome/browser/extensions/settings/settings_test_util.cc (right): https://codereview.chromium.org/11365181/diff/22115/chrome/browser/extensions/settings/settings_test_util.cc#newcode123 chrome/browser/extensions/settings/settings_test_util.cc:123: static_cast<ExtensionServiceInterface*>(&extension_service_); On 2012/11/26 22:58:04, Yoyo Zhou wrote: > On ...
8 years ago (2012-11-29 17:36:34 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mirandac@chromium.org/11365181/11299
8 years ago (2012-11-30 17:41:04 UTC) #23
commit-bot: I haz the power
8 years ago (2012-11-30 18:47:16 UTC) #24
Message was sent while issue was closed.
Change committed as 170497

Powered by Google App Engine
This is Rietveld 408576698