|
|
Chromium Code Reviews|
Created:
4 years, 4 months ago by meacer Modified:
4 years, 4 months ago CC:
chromium-reviews, tfarina, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionShow a custom message in the page info bubble for view-source URLs
Screenshot: https://drive.google.com/file/d/0B9q2eN9gDoUIMGYyeE85Ynk2VGs/view?usp=sharing
BUG=635776
TBR=sdefresne,caitkp
Committed: https://crrev.com/e1feca06c43dba6d9465e9a06370cbab24f5d7fe
Cr-Commit-Position: refs/heads/master@{#412067}
Patch Set 1 #Patch Set 2 : Fix mac build #Patch Set 3 : Fix build #Patch Set 4 : Fix mac build #Patch Set 5 : Fix mac build #Patch Set 6 : Fix test #
Total comments: 3
Patch Set 7 : rsesek comment #
Total comments: 2
Patch Set 8 : felt comment #
Total comments: 1
Patch Set 9 : felt comments #Patch Set 10 : The #
Messages
Total messages: 61 (44 generated)
The CQ bit was checked by meacer@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: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
The CQ bit was checked by meacer@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: 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 meacer@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 checked by meacer@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: 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 meacer@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: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
The CQ bit was checked by meacer@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: 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 meacer@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: This issue passed the CQ dry run.
Description was changed from ========== Show a custom message in the page info bubble for view-source URLs BUG=635776 ========== to ========== Show a custom message in the page info bubble for view-source URLs Screenshot: https://drive.google.com/file/d/0B9q2eN9gDoUIMGYyeE85Ynk2VGs/view?usp=sharing BUG=635776 ==========
meacer@chromium.org changed reviewers: + felt@chromium.org
felt for chrome/browser/ui/views/website_settings/website_settings_popup_view.cc rsesek for chrome/browser/ui/cocoa/website_settings/ sdefresne for components/ PTAL, thanks.
meacer@chromium.org changed reviewers: + rsesek@chromium.org, sdefresne@chromium.org
https://codereview.chromium.org/2232453002/diff/100001/components/pageinfo_st... File components/pageinfo_strings.grdp (right): https://codereview.chromium.org/2232453002/diff/100001/components/pageinfo_st... components/pageinfo_strings.grdp:64: You are viewing source of a web page. Should this say "the source of a web page", "sources of a web page", or else?
felt@chromium.org changed reviewers: + lgarron@chromium.org
lgarron, can you please do a shadow review? (i'll review tomorrow afternoon, if you can take a look before then)
Note that this is a stable release blocker (not pushing it, just helping you prioritize :)
LGTM https://codereview.chromium.org/2232453002/diff/100001/chrome/browser/ui/coco... File chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm (right): https://codereview.chromium.org/2232453002/diff/100001/chrome/browser/ui/coco... chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm:1163: if (!virtual_url.SchemeIs(content::kChromeUIScheme) && !IsInternalURL() ?
The CQ bit was checked by meacer@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: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
https://codereview.chromium.org/2232453002/diff/120001/chrome/browser/ui/coco... File chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm (right): https://codereview.chromium.org/2232453002/diff/120001/chrome/browser/ui/coco... chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm:262: } If I'm reading this right, the default is the content::kChromeUIScheme because this can only be reached for one of those three schemes. However it is not explicitly called out here. I'm worried that in a future CL someone will add a new scheme to IsInternalURL, and kChromeUIScheme will get the wrong treatment. Would it be possible to keep the concept of a BubbleType so that you can have switch statements, making sure all the BubbleTypes are handled? At the very least, please be explicit about the kChromeUIScheme here.
https://codereview.chromium.org/2232453002/diff/100001/chrome/browser/ui/coco... File chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm (right): https://codereview.chromium.org/2232453002/diff/100001/chrome/browser/ui/coco... chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm:1163: if (!virtual_url.SchemeIs(content::kChromeUIScheme) && On 2016/08/12 17:26:18, Robert Sesek wrote: > !IsInternalURL() ? Done. https://codereview.chromium.org/2232453002/diff/120001/chrome/browser/ui/coco... File chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm (right): https://codereview.chromium.org/2232453002/diff/120001/chrome/browser/ui/coco... chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm:262: } On 2016/08/12 18:58:39, felt wrote: > If I'm reading this right, the default is the content::kChromeUIScheme because > this can only be reached for one of those three schemes. However it is not > explicitly called out here. I'm worried that in a future CL someone will add a > new scheme to IsInternalURL, and kChromeUIScheme will get the wrong treatment. > > Would it be possible to keep the concept of a BubbleType so that you can have > switch statements, making sure all the BubbleTypes are handled? > > At the very least, please be explicit about the kChromeUIScheme here. I removed BubbleType for two reasons: - Corresponding views code uses URLs, so this is more consistent - BubbleType is only used here, and it seemed overkill to add an enum for only this reason. (it was me who added it in a previous CL) Hopefully it's clearer now with the NOTREACHED.
https://codereview.chromium.org/2232453002/diff/140001/chrome/browser/ui/view... File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://codereview.chromium.org/2232453002/diff/140001/chrome/browser/ui/view... chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:338: text = IDS_PAGE_INFO_VIEW_SOURCE_PAGE; can you copy the same logic here too, with the complete if-else statement with a NOTREACHED()?
The CQ bit was checked by meacer@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: This issue passed the CQ dry run.
@felt: Do latest changes LGTY? @caitkp: sdefresne is OOO, could you please take a look at the string change in components?
meacer@chromium.org changed reviewers: + caitkp@chromium.org
lgtm
Description was changed from ========== Show a custom message in the page info bubble for view-source URLs Screenshot: https://drive.google.com/file/d/0B9q2eN9gDoUIMGYyeE85Ynk2VGs/view?usp=sharing BUG=635776 ========== to ========== Show a custom message in the page info bubble for view-source URLs Screenshot: https://drive.google.com/file/d/0B9q2eN9gDoUIMGYyeE85Ynk2VGs/view?usp=sharing BUG=635776 TBR=sdefresne,caitkp ==========
caitkp, sdefresne: TBRing you for the string change. Would like to land this today as it's a stable release blocker. Thanks!
The CQ bit was checked by meacer@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from rsesek@chromium.org, felt@chromium.org Link to the patchset: https://codereview.chromium.org/2232453002/#ps180001 (title: "The")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
component_strings lgtm
Message was sent while issue was closed.
Description was changed from ========== Show a custom message in the page info bubble for view-source URLs Screenshot: https://drive.google.com/file/d/0B9q2eN9gDoUIMGYyeE85Ynk2VGs/view?usp=sharing BUG=635776 TBR=sdefresne,caitkp ========== to ========== Show a custom message in the page info bubble for view-source URLs Screenshot: https://drive.google.com/file/d/0B9q2eN9gDoUIMGYyeE85Ynk2VGs/view?usp=sharing BUG=635776 TBR=sdefresne,caitkp ==========
Message was sent while issue was closed.
Committed patchset #10 (id:180001)
Message was sent while issue was closed.
Description was changed from ========== Show a custom message in the page info bubble for view-source URLs Screenshot: https://drive.google.com/file/d/0B9q2eN9gDoUIMGYyeE85Ynk2VGs/view?usp=sharing BUG=635776 TBR=sdefresne,caitkp ========== to ========== Show a custom message in the page info bubble for view-source URLs Screenshot: https://drive.google.com/file/d/0B9q2eN9gDoUIMGYyeE85Ynk2VGs/view?usp=sharing BUG=635776 TBR=sdefresne,caitkp Committed: https://crrev.com/e1feca06c43dba6d9465e9a06370cbab24f5d7fe Cr-Commit-Position: refs/heads/master@{#412067} ==========
Message was sent while issue was closed.
Patchset 10 (id:??) landed as https://crrev.com/e1feca06c43dba6d9465e9a06370cbab24f5d7fe Cr-Commit-Position: refs/heads/master@{#412067} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
