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

Issue 2385533002: Replace usage of GURL(origin.Serialize()) with origin.GetURL() (Closed)

Created:
4 years, 2 months ago by Charlie Harrison
Modified:
4 years, 2 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, msramek+watch_chromium.org, mcasas+watch+vc_chromium.org, posciak+watch_chromium.org, jam, cbentzel+watch_chromium.org, nhiroki, feature-media-reviews_chromium.org, darin-cc_chromium.org, jkarlin+watch_chromium.org, cmumford, chromium-apps-reviews_chromium.org, markusheintz_, jsbell+idb_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace usage of GURL(origin.Serialize()) with origin.GetURL() The bulk of this was via the following command: git grep -l "GURL([a-zA-Z0-9\._]*\.Serialize())" | xargs sed -i \ 's/GURL(\([a-zA-Z0-9\._]*\)\.Serialize())/\1.GetURL()/g' Which was then followed by a 'git cl format', and removing changes from url unit tests, which check that this change has identical semantics. renderer_host/media also had ConvertToGURL(Origin) methods which were removed. BUG=651554 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/aec2c5453d3e7769057aab74142b403d87791a8b Cr-Commit-Position: refs/heads/master@{#424825}

Patch Set 1 #

Patch Set 2 : Remove ConvertToGURL from renderer_host/media #

Patch Set 3 : add "_" and "." to search and replace #

Patch Set 4 : properly track dependent patch :P #

Patch Set 5 : sync #

Patch Set 6 : rebase and fix up some includes #

Total comments: 2

Patch Set 7 : Add dependent PS fix #

Patch Set 8 : sync to #422769 #

Total comments: 2

Patch Set 9 : ncarter comments #

Total comments: 2

Patch Set 10 : sync to #424762 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -82 lines) Patch
M chrome/browser/browsing_data/origin_filter_builder.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/budget_service/budget_database.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/budget_service/budget_manager.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/site_details.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/android/bluetooth_chooser_android.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/login/login_handler.cc View 1 2 3 4 5 4 chunks +5 lines, -4 lines 0 comments Download
M components/subresource_filter/core/common/indexed_ruleset.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/cache_storage/cache_storage_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 6 chunks +7 lines, -8 lines 0 comments Download
M content/browser/frame_host/render_frame_message_filter.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_context_impl.cc View 6 chunks +8 lines, -10 lines 0 comments Download
M content/browser/indexed_db/indexed_db_internals_ui.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/indexed_db/indexed_db_quota_client.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_quota_client.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/permissions/permission_service_impl.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/database_message_filter.cc View 4 chunks +4 lines, -5 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 1 5 chunks +4 lines, -8 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_ui_proxy.cc View 1 2 chunks +1 line, -9 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/dom_storage/local_storage_cached_area.cc View 1 2 3 4 5 4 chunks +4 lines, -7 lines 0 comments Download
M extensions/browser/extension_web_contents_observer.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M ios/web/public/origin_util.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/base/registry_controlled_domains/registry_controlled_domain.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 67 (44 generated)
Charlie Harrison
Hello everyone, We now have a way to get URLs from Origins without serializing + ...
4 years, 2 months ago (2016-10-04 00:12:27 UTC) #22
Bernhard Bauer
lgtm
4 years, 2 months ago (2016-10-04 09:24:14 UTC) #27
sdefresne
https://codereview.chromium.org/2385533002/diff/100001/ios/web/public/origin_util.mm File ios/web/public/origin_util.mm (right): https://codereview.chromium.org/2385533002/diff/100001/ios/web/public/origin_util.mm#newcode44 ios/web/public/origin_util.mm:44: return origin_tuple.GetURL(); It look like this code broke the ...
4 years, 2 months ago (2016-10-04 10:59:33 UTC) #28
Charlie Harrison
https://codereview.chromium.org/2385533002/diff/100001/ios/web/public/origin_util.mm File ios/web/public/origin_util.mm (right): https://codereview.chromium.org/2385533002/diff/100001/ios/web/public/origin_util.mm#newcode44 ios/web/public/origin_util.mm:44: return origin_tuple.GetURL(); On 2016/10/04 10:59:33, sdefresne wrote: > It ...
4 years, 2 months ago (2016-10-04 12:15:22 UTC) #29
Charlie Harrison
I've added a dependent PS fix that seems to have fixed the iOS problems. The ...
4 years, 2 months ago (2016-10-04 14:17:32 UTC) #36
Devlin
extensions lgtm
4 years, 2 months ago (2016-10-04 14:49:07 UTC) #39
sdefresne
components/subresource_filter/core/common/indexed_ruleset.cc ios/web/public/origin_util.mm both lgtm
4 years, 2 months ago (2016-10-04 15:10:47 UTC) #40
sdefresne
components/subresource_filter/core/common/indexed_ruleset.cc ios/web/public/origin_util.mm both lgtm
4 years, 2 months ago (2016-10-04 15:10:47 UTC) #41
ncarter (slow)
content lgtm with one further simplification https://codereview.chromium.org/2385533002/diff/140001/content/browser/frame_host/render_frame_message_filter.cc File content/browser/frame_host/render_frame_message_filter.cc (right): https://codereview.chromium.org/2385533002/diff/140001/content/browser/frame_host/render_frame_message_filter.cc#newcode497 content/browser/frame_host/render_frame_message_filter.cc:497: main_frame_origin.unique() ? GURL() ...
4 years, 2 months ago (2016-10-04 18:21:06 UTC) #42
Charlie Harrison
Thanks! ncarter: would you also mind taking a look at site_details.cc? You're the only reviewer ...
4 years, 2 months ago (2016-10-04 19:09:56 UTC) #43
ncarter (slow)
site_details lgtm too
4 years, 2 months ago (2016-10-04 20:01:46 UTC) #44
Peter Kasting
LGTM https://codereview.chromium.org/2385533002/diff/160001/chrome/browser/ui/login/login_handler.cc File chrome/browser/ui/login/login_handler.cc (right): https://codereview.chromium.org/2385533002/diff/160001/chrome/browser/ui/login/login_handler.cc#newcode485 chrome/browser/ui/login/login_handler.cc:485: } I don't want to force you to ...
4 years, 2 months ago (2016-10-05 00:32:08 UTC) #45
Charlie Harrison
https://codereview.chromium.org/2385533002/diff/160001/chrome/browser/ui/login/login_handler.cc File chrome/browser/ui/login/login_handler.cc (right): https://codereview.chromium.org/2385533002/diff/160001/chrome/browser/ui/login/login_handler.cc#newcode485 chrome/browser/ui/login/login_handler.cc:485: } On 2016/10/05 00:32:08, Peter Kasting wrote: > I ...
4 years, 2 months ago (2016-10-05 12:32:03 UTC) #46
Charlie Harrison
johnme, friendly ping :)
4 years, 2 months ago (2016-10-07 18:24:08 UTC) #47
johnme
On 2016/10/07 18:24:08, Charlie Harrison wrote: > johnme, friendly ping :) chrome/browser/budget_service/ lgtm (sorry, I ...
4 years, 2 months ago (2016-10-12 16:35:56 UTC) #48
Charlie Harrison
On 2016/10/12 16:35:56, johnme wrote: > On 2016/10/07 18:24:08, Charlie Harrison wrote: > > johnme, ...
4 years, 2 months ago (2016-10-12 16:36:32 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2385533002/160001
4 years, 2 months ago (2016-10-12 16:36:55 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/284780)
4 years, 2 months ago (2016-10-12 16:39:36 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2385533002/180001
4 years, 2 months ago (2016-10-12 17:04:01 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/47030)
4 years, 2 months ago (2016-10-12 18:49:23 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2385533002/180001
4 years, 2 months ago (2016-10-12 19:00:27 UTC) #64
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 2 months ago (2016-10-12 19:41:02 UTC) #65
commit-bot: I haz the power
4 years, 2 months ago (2016-10-12 19:42:35 UTC) #67
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/aec2c5453d3e7769057aab74142b403d87791a8b
Cr-Commit-Position: refs/heads/master@{#424825}

Powered by Google App Engine
This is Rietveld 408576698