|
|
Chromium Code Reviews
DescriptionMD Settings: Fix Client Navigations to Search Query URLs
Previously, ChromeOS client would navigate directly to URLs such as:
chrome://settings/search#Bluetooth.
This was a hack because Old Options did not have section routes. This
CL replaces all those navigations with section URLs, such as:
chrome://settings/bluetooth
This is part of the legacy URL migration. The if-branches will be
removed once Old Options is removed from Chrome.
BUG=623587
Committed: https://crrev.com/d5c63244f585d1dfa18f9532c4882b1dea93488b
Cr-Commit-Position: refs/heads/master@{#428215}
Patch Set 1 #Patch Set 2 : merge #
Total comments: 4
Patch Set 3 : fix #
Total comments: 2
Patch Set 4 : fix #Patch Set 5 : Fix implementation #
Messages
Total messages: 37 (18 generated)
The CQ bit was checked by tommycli@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by tommycli@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== MD Settings: Fix Client Navigations to Search Query URLs Previously, ChromeOS client would navigate directly to URLs such as: chrome://settings/search#Bluetooth. This was a hack because Old Options did not have section routes. This CL replaces all those navigations with section URLs, such as: chrome://settings/bluetooth This is part of the legacy URL migration. The if-branches will be removed once Old Options is removed from Chrome. BUG=623587 ========== to ========== MD Settings: Fix Client Navigations to Search Query URLs Previously, ChromeOS client would navigate directly to URLs such as: chrome://settings/search#Bluetooth. This was a hack because Old Options did not have section routes. This CL replaces all those navigations with section URLs, such as: chrome://settings/bluetooth This is part of the legacy URL migration. The if-branches will be removed once Old Options is removed from Chrome. BUG=623587 ==========
tommycli@chromium.org changed reviewers: + stevenjb@chromium.org
tommycli@chromium.org changed reviewers: + rsleevi@chromium.org
stevenjb: PTAL chrome/browser/ui/ash/system_tray_client.cc chrome/browser/ui/ash/system_tray_delegate_chromeos.cc chrome/common rsleevi: PTAL chrome/browser/interstitials/chrome_controller_client.cc Thanks all!
Wrong reviewer? I'm not an owner for that file / have no knowledge of it :)
On 2016/10/27 17:05:20, Ryan Sleevi wrote: > Wrong reviewer? I'm not an owner for that file / have no knowledge of it :) Oh that
On 2016/10/27 17:06:38, tommycli wrote: > On 2016/10/27 17:05:20, Ryan Sleevi wrote: > > Wrong reviewer? I'm not an owner for that file / have no knowledge of it :) > > Oh that Oh that's odd, you seem to be in chrome/browser/interstitials/OWNERS
On 2016/10/27 17:06:49, tommycli wrote: > Oh that's odd, you seem to be in chrome/browser/interstitials/OWNERS ... What? Okay! (Yeah, I have no idea why, I should remove myself, sorry)
https://codereview.chromium.org/2455113003/diff/20001/chrome/browser/intersti... File chrome/browser/interstitials/chrome_controller_client.cc (right): https://codereview.chromium.org/2455113003/diff/20001/chrome/browser/intersti... chrome/browser/interstitials/chrome_controller_client.cc:58: sub_page = chrome::kBluetoothSubPage; Date time https://codereview.chromium.org/2455113003/diff/20001/chrome/browser/intersti... chrome/browser/interstitials/chrome_controller_client.cc:62: l10n_util::GetStringUTF8(IDS_OPTIONS_SETTINGS_SECTION_TITLE_BLUETOOTH); Shouldn't this be DATETIME?
On 2016/10/27 17:10:33, Ryan Sleevi wrote: > On 2016/10/27 17:06:49, tommycli wrote: > > Oh that's odd, you seem to be in chrome/browser/interstitials/OWNERS > > ... What? Okay! > > (Yeah, I have no idea why, I should remove myself, sorry) Gotcha. Not a problem, I can find another reviewer. The change is fairly trivial / not directly related to interstitials anyways. Thanks!
rsleevi: Thanks! https://codereview.chromium.org/2455113003/diff/20001/chrome/browser/intersti... File chrome/browser/interstitials/chrome_controller_client.cc (right): https://codereview.chromium.org/2455113003/diff/20001/chrome/browser/intersti... chrome/browser/interstitials/chrome_controller_client.cc:58: sub_page = chrome::kBluetoothSubPage; On 2016/10/27 17:11:12, Ryan Sleevi wrote: > Date time Done. https://codereview.chromium.org/2455113003/diff/20001/chrome/browser/intersti... chrome/browser/interstitials/chrome_controller_client.cc:62: l10n_util::GetStringUTF8(IDS_OPTIONS_SETTINGS_SECTION_TITLE_BLUETOOTH); On 2016/10/27 17:11:12, Ryan Sleevi wrote: > Shouldn't this be DATETIME? Done.
lgtm
lgtm as-is or with suggested change. https://codereview.chromium.org/2455113003/diff/40001/chrome/browser/intersti... File chrome/browser/interstitials/chrome_controller_client.cc (right): https://codereview.chromium.org/2455113003/diff/40001/chrome/browser/intersti... chrome/browser/interstitials/chrome_controller_client.cc:63: } Optional suggestion: Just use chrome::kDateTimeSubPage and move this logic to chrome::ShowSettingsSubPageForProfile: if (sub_page == chrome::kDateTimeSubPage && !base::FeatureList::IsEnabled(features::kMaterialDesignSettings)) sub_page = std::string(chrome::kDeprecatedOptionsSearchSubPage) + "#"... Then we can clean up all existing calls to chrome::ShowSettingsSubPageForProfile and only have to remove the deprecated code in one place later.
The CQ bit was checked by tommycli@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
stevenjb: Thanks! New version is indeed cleaner. rsleevi: Thank you as well! https://codereview.chromium.org/2455113003/diff/40001/chrome/browser/intersti... File chrome/browser/interstitials/chrome_controller_client.cc (right): https://codereview.chromium.org/2455113003/diff/40001/chrome/browser/intersti... chrome/browser/interstitials/chrome_controller_client.cc:63: } On 2016/10/27 19:10:56, stevenjb wrote: > Optional suggestion: Just use chrome::kDateTimeSubPage and move this logic to > chrome::ShowSettingsSubPageForProfile: > > if (sub_page == chrome::kDateTimeSubPage && > !base::FeatureList::IsEnabled(features::kMaterialDesignSettings)) > sub_page = std::string(chrome::kDeprecatedOptionsSearchSubPage) + "#"... > > Then we can clean up all existing calls to chrome::ShowSettingsSubPageForProfile > and only have to remove the deprecated code in one place later. Done.
The CQ bit was checked by tommycli@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from stevenjb@chromium.org, rsleevi@chromium.org Link to the patchset: https://codereview.chromium.org/2455113003/#ps80001 (title: "Fix implementation")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
tommycli@chromium.org changed reviewers: + thestig@chromium.org
thestig: PTAL changes to chrome/browser/ui/chrome_pages.cc thanks!
lgtm
On 2016/10/27 22:17:11, Lei Zhang wrote: > lgtm thanks!
The CQ bit was checked by tommycli@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== MD Settings: Fix Client Navigations to Search Query URLs Previously, ChromeOS client would navigate directly to URLs such as: chrome://settings/search#Bluetooth. This was a hack because Old Options did not have section routes. This CL replaces all those navigations with section URLs, such as: chrome://settings/bluetooth This is part of the legacy URL migration. The if-branches will be removed once Old Options is removed from Chrome. BUG=623587 ========== to ========== MD Settings: Fix Client Navigations to Search Query URLs Previously, ChromeOS client would navigate directly to URLs such as: chrome://settings/search#Bluetooth. This was a hack because Old Options did not have section routes. This CL replaces all those navigations with section URLs, such as: chrome://settings/bluetooth This is part of the legacy URL migration. The if-branches will be removed once Old Options is removed from Chrome. BUG=623587 ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001)
Message was sent while issue was closed.
Description was changed from ========== MD Settings: Fix Client Navigations to Search Query URLs Previously, ChromeOS client would navigate directly to URLs such as: chrome://settings/search#Bluetooth. This was a hack because Old Options did not have section routes. This CL replaces all those navigations with section URLs, such as: chrome://settings/bluetooth This is part of the legacy URL migration. The if-branches will be removed once Old Options is removed from Chrome. BUG=623587 ========== to ========== MD Settings: Fix Client Navigations to Search Query URLs Previously, ChromeOS client would navigate directly to URLs such as: chrome://settings/search#Bluetooth. This was a hack because Old Options did not have section routes. This CL replaces all those navigations with section URLs, such as: chrome://settings/bluetooth This is part of the legacy URL migration. The if-branches will be removed once Old Options is removed from Chrome. BUG=623587 Committed: https://crrev.com/d5c63244f585d1dfa18f9532c4882b1dea93488b Cr-Commit-Position: refs/heads/master@{#428215} ==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/d5c63244f585d1dfa18f9532c4882b1dea93488b Cr-Commit-Position: refs/heads/master@{#428215} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
