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

Issue 8827013: Move/replace/rename URL-based extension getters from ExtensionService to/in ExtensionSet. (Closed)

Created:
9 years ago by Yoyo Zhou
Modified:
9 years ago
CC:
chromium-reviews, jstritar+watch_chromium.org, Avi (use Gerrit), creis+watch_chromium.org, nkostylev+watch_chromium.org, ajwong+watch_chromium.org, yoshiki+watch_chromium.org, mihaip+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, jstritar
Visibility:
Public.

Description

Move/replace/rename URL-based extension getters from ExtensionService to/in ExtensionSet. ExtensionService::GetExtensionByURL -> GetByID with the host ExtensionService::GetExtensionByWebExtent -> GetHostedAppByURL GetByURL -> GetExtensionOrAppByURL BUG=104091 TEST=existing tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114148

Patch Set 1 #

Patch Set 2 : extent #

Total comments: 8

Patch Set 3 : origins #

Total comments: 16

Patch Set 4 : aa's #

Patch Set 5 : :memory #

Total comments: 1

Patch Set 6 : rename *ALL* #

Patch Set 7 : . #

Patch Set 8 : id #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -184 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 6 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/login/help_app_launcher.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/offline/offline_load_page.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_chrome_auth_private_api.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_info_map_unittest.cc View 1 2 3 4 5 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_navigation_observer.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_process_manager.cc View 1 2 3 4 5 3 chunks +9 lines, -19 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -14 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 3 chunks +13 lines, -60 lines 0 comments Download
M chrome/browser/extensions/extension_web_ui.cc View 1 2 3 4 5 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_webstore_private_api.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context.cc View 1 2 3 4 5 2 chunks +14 lines, -7 lines 0 comments Download
M chrome/browser/memory_details.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 1 2 3 4 5 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/notifications/notification_options_menu_model.cc View 1 2 3 4 5 4 chunks +16 lines, -10 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_view_host_observer.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/transfer_navigation_resource_handler.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_host_delegate_helper.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/tab_contents/tab_util.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/task_manager/task_manager_resource_providers.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension_messages.h View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_set.h View 1 2 3 4 5 6 7 1 chunk +10 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension_set.cc View 1 2 3 4 5 6 7 3 chunks +27 lines, -9 lines 0 comments Download
M chrome/common/extensions/extension_set_unittest.cc View 1 2 3 4 5 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 5 chunks +7 lines, -5 lines 0 comments Download
M chrome/renderer/extensions/app_bindings.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_extension.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/extension_resource_request_policy.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/schema_generated_bindings.cc View 1 2 3 4 5 6 7 4 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
Yoyo Zhou
cc'ing abarth since he changed GetByURL recently These uses of GetByURL are from the browser ...
9 years ago (2011-12-07 23:30:52 UTC) #1
abarth-chromium
Sorry this is trickier than it should be. Generally speaking, you want to use the ...
9 years ago (2011-12-07 23:51:44 UTC) #2
Yoyo Zhou
http://codereview.chromium.org/8827013/diff/2001/chrome/browser/geolocation/chrome_geolocation_permission_context.cc File chrome/browser/geolocation/chrome_geolocation_permission_context.cc (right): http://codereview.chromium.org/8827013/diff/2001/chrome/browser/geolocation/chrome_geolocation_permission_context.cc#newcode557 chrome/browser/geolocation/chrome_geolocation_permission_context.cc:557: ext_service->extensions()->GetByURL(ExtensionURLInfo(requesting_frame)); On 2011/12/07 23:51:44, abarth wrote: > This one ...
9 years ago (2011-12-08 01:04:51 UTC) #3
abarth-chromium
Using WebSecurityOrigin::toString and WebSecurityOrigin::createFromString is fine.
9 years ago (2011-12-08 01:09:13 UTC) #4
Yoyo Zhou
http://codereview.chromium.org/8827013/diff/2001/chrome/browser/notifications/desktop_notification_service.cc File chrome/browser/notifications/desktop_notification_service.cc (right): http://codereview.chromium.org/8827013/diff/2001/chrome/browser/notifications/desktop_notification_service.cc#newcode412 chrome/browser/notifications/desktop_notification_service.cc:412: ext_service->extensions()->GetByURL(ExtensionURLInfo(origin)); On 2011/12/07 23:51:44, abarth wrote: > Same here. ...
9 years ago (2011-12-08 20:52:17 UTC) #5
abarth-chromium
> Any thoughts on whether GURL or string16 is better for this? I'd like to ...
9 years ago (2011-12-08 21:01:04 UTC) #6
Yoyo Zhou
I spent a while trying to change the GURLs to string16s/WebSecurityOrigins for desktop notification and ...
9 years ago (2011-12-09 00:18:55 UTC) #7
Aaron Boodman
Cool, thanks for working through this. I find myself having to think very hard at ...
9 years ago (2011-12-09 16:05:19 UTC) #8
Yoyo Zhou
Yes, when I changed each of the GetExtensionByURL sites, I had to specifically check to ...
9 years ago (2011-12-09 19:59:09 UTC) #9
Aaron Boodman
On Fri, Dec 9, 2011 at 11:59 AM, <yoz@chromium.org> wrote: > Yes, when I changed ...
9 years ago (2011-12-09 20:13:12 UTC) #10
Yoyo Zhou
On Fri, Dec 9, 2011 at 12:12 PM, Aaron Boodman <aa@chromium.org> wrote: > On Fri, ...
9 years ago (2011-12-09 20:21:16 UTC) #11
Aaron Boodman
On Fri, Dec 9, 2011 at 12:21 PM, Yoyo Zhou <yoz@chromium.org> wrote: > On Fri, ...
9 years ago (2011-12-09 20:29:04 UTC) #12
Yoyo Zhou
I renamed the functions as described above and changed a bunch of the original uses ...
9 years ago (2011-12-10 00:18:50 UTC) #13
Yoyo Zhou
It turns out the use case of GetIDByURL for chrome-extension: URLs where the extension doesn't ...
9 years ago (2011-12-12 18:03:22 UTC) #14
Aaron Boodman
On Mon, Dec 12, 2011 at 10:03 AM, <yoz@chromium.org> wrote: > It turns out the ...
9 years ago (2011-12-12 18:08:55 UTC) #15
Yoyo Zhou
On 2011/12/12 18:08:55, Aaron Boodman wrote: > On Mon, Dec 12, 2011 at 10:03 AM, ...
9 years ago (2011-12-12 21:49:00 UTC) #16
Aaron Boodman
K. LGTM
9 years ago (2011-12-12 21:54:07 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/8827013/28001
9 years ago (2011-12-12 22:02:13 UTC) #18
commit-bot: I haz the power
Try job failure for 8827013-28001 (retry) on win_rel for step "update". It's a second try, ...
9 years ago (2011-12-12 23:21:14 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/8827013/28001
9 years ago (2011-12-13 00:38:59 UTC) #20
commit-bot: I haz the power
9 years ago (2011-12-13 01:47:46 UTC) #21
Change committed as 114148

Powered by Google App Engine
This is Rietveld 408576698