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

Issue 620983002: Add Permissions to the PageInfo dialog on Android (Closed)

Created:
6 years, 2 months ago by sashab
Modified:
6 years, 2 months ago
CC:
benwells, chrome-apps-syd-reviews_chromium.org, chromium-reviews, Michael van Ouwerkerk, Peter Beverloo
Base URL:
https://chromium.googlesource.com/chromium/src.git@page_info_dialog_shell_only_v2
Project:
chromium
Visibility:
Public.

Description

Add Permissions to the PageInfo dialog on Android Add permissions dropdowns to the PageInfo dialog on Android, which alter the content setting for the website currently being visited. Also add a 'Copy URL' button and a 'Done' button. BUG=365528 Committed: https://crrev.com/97894ce12fc78d6f59e63314aefead3857816a28 Cr-Commit-Position: refs/heads/master@{#300658}

Patch Set 1 #

Patch Set 2 : Dialog with permissions dropdowns (no buttons working) #

Patch Set 3 : Removed changes to java_cpp_enum.py #

Patch Set 4 : Working permissions dropdowns with Copy URL button and icons #

Total comments: 4

Patch Set 5 : Added TODO to rename class to PageInfo #

Total comments: 57

Patch Set 6 : Review feedback, UI feedback and moved Permission Settings strings into Android #

Total comments: 1

Patch Set 7 : Rebase and added arrow next to dropdowns on PageInfo screen #

Total comments: 4

Patch Set 8 : Made copy button close dialog, moved connection message into java, fixed way internal pages are det… #

Total comments: 14

Patch Set 9 : Review feedback, not yet tested on tablet #

Patch Set 10 : Fixed tests #

Total comments: 4

Patch Set 11 : Test fix attempt #

Patch Set 12 : Rebased with WebContentsObserver rename #

Patch Set 13 : Trying to fix patch failure #

Patch Set 14 : Rebase off master #

Patch Set 15 : Removed extra space in attempt to fix patch failure #

Patch Set 16 : Removed problematic file (android chrome strings) from patch #

Patch Set 17 : Added changes to android_cvhrome_strings back in #

Patch Set 18 : Same patchset #

Patch Set 19 : Final rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+627 lines, -170 lines) Patch
M chrome/BUILD.gn View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/android/java/res/drawable-hdpi/page_info_arrow_down.png View 1 2 3 4 5 6 Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/page_info_auto_downloads.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/page_info_fullscreen.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/page_info_image.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/page_info_javascript.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/page_info_location.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/page_info_media.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/page_info_notification.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/page_info_plugins.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/page_info_popups.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/page_info_arrow_down.png View 1 2 3 4 5 6 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/page_info_auto_downloads.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/page_info_fullscreen.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/page_info_image.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/page_info_javascript.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/page_info_location.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/page_info_media.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/page_info_notification.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/page_info_plugins.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/page_info_popups.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/page_info_arrow_down.png View 1 2 3 4 5 6 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/page_info_auto_downloads.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/page_info_fullscreen.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/page_info_image.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/page_info_javascript.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/page_info_location.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/page_info_media.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/page_info_notification.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/page_info_plugins.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/page_info_popups.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/page_info_arrow_down.png View 1 2 3 4 5 6 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/page_info_auto_downloads.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/page_info_fullscreen.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/page_info_image.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/page_info_javascript.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/page_info_location.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/page_info_media.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/page_info_notification.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/page_info_plugins.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/page_info_popups.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/page_info_arrow_down.png View 1 2 3 4 5 6 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/page_info_auto_downloads.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/page_info_fullscreen.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/page_info_image.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/page_info_javascript.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/page_info_location.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/page_info_media.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/page_info_notification.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/page_info_plugins.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/page_info_popups.png View 1 9 10 11 12 14 Binary file 0 comments Download
A chrome/android/java/res/drawable/website_settings_permission_spinner_dropdown_item.xml View 1 2 3 4 5 6 7 8 9 10 11 12 14 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/android/java/res/drawable/website_settings_permission_spinner_item.xml View 1 2 3 4 5 6 7 8 9 10 11 12 14 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/android/java/res/drawable/website_settings_permission_spinner_item_background.xml View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/android/java/res/layout/website_settings.xml View 1 2 3 4 5 6 7 1 chunk +102 lines, -17 lines 0 comments Download
A chrome/android/java/res/layout/website_settings_permission_row.xml View 1 2 3 4 5 1 chunk +39 lines, -0 lines 0 comments Download
M chrome/android/java/res/values/colors.xml View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/android/java/res/values/dimens.xml View 1 2 3 4 5 6 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +251 lines, -64 lines 1 comment Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +36 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +0 lines, -11 lines 0 comments Download
M chrome/browser/ui/android/website_settings_popup_android.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/android/website_settings_popup_android.cc View 1 2 3 4 5 6 7 8 3 chunks +52 lines, -40 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/ui/website_settings/website_settings_ui.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings_ui.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +2 lines, -22 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 2 chunks +20 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/content_settings/core/common/content_settings.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M components/content_settings/core/common/content_settings_types.h View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (14 generated)
sashab
Hi Ted, This is still a WIP, but I've got the permissions dropdowns to appear ...
6 years, 2 months ago (2014-10-07 06:25:51 UTC) #2
Finnur
https://codereview.chromium.org/620983002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java File chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java (right): https://codereview.chromium.org/620983002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java#newcode139 chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java:139: private int getImageResourceForPermission(int permission) { This feels like it ...
6 years, 2 months ago (2014-10-08 09:22:56 UTC) #4
sashab
Ted: happy for you to properly review this now. It looks like a large patch ...
6 years, 2 months ago (2014-10-08 22:55:03 UTC) #5
Ted C
I know in the SVN world you did need to split out and land resources ...
6 years, 2 months ago (2014-10-09 01:25:15 UTC) #6
sashab
Thanks Ted; see parallel UI thread for nit UI discussions. Since this is behind a ...
6 years, 2 months ago (2014-10-14 02:53:19 UTC) #7
sashab
jochen@chromium.org: Please review changes in - chrome/chrome.gyp - chrome/BUILD.gn - components/content_settings/*. tedchoc@chromium.org: Please review all ...
6 years, 2 months ago (2014-10-15 06:13:57 UTC) #9
sashab
+some CCs who might want to keep tabs on this CL :) Once this lands, ...
6 years, 2 months ago (2014-10-15 08:23:45 UTC) #10
jochen (gone - plz use gerrit)
components and gyp/gn lgtm
6 years, 2 months ago (2014-10-15 15:28:46 UTC) #11
Ted C
https://codereview.chromium.org/620983002/diff/120001/chrome/android/java/res/drawable/website_settings_permission_spinner_item_background.xml File chrome/android/java/res/drawable/website_settings_permission_spinner_item_background.xml (right): https://codereview.chromium.org/620983002/diff/120001/chrome/android/java/res/drawable/website_settings_permission_spinner_item_background.xml#newcode16 chrome/android/java/res/drawable/website_settings_permission_spinner_item_background.xml:16: <item><bitmap android:gravity="right" android:src="@drawable/page_info_arrow_down" /></item> With this, I think the ...
6 years, 2 months ago (2014-10-16 00:24:25 UTC) #12
sashab
markusheintz: please review changes to chrome/browser/ui/website_settings/* (especially changes in website_settings.cc) tedchoc: please review changes in ...
6 years, 2 months ago (2014-10-16 05:52:02 UTC) #14
markusheintz_
On 2014/10/16 05:52:02, sasha_b wrote: > markusheintz: please review changes to chrome/browser/ui/website_settings/* > (especially changes ...
6 years, 2 months ago (2014-10-16 16:06:27 UTC) #16
Ted C
Very close...just a few final little comments https://codereview.chromium.org/620983002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java File chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java (right): https://codereview.chromium.org/620983002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java#newcode67 chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java:67: public String ...
6 years, 2 months ago (2014-10-16 21:30:46 UTC) #17
sashab
Ptal tedchoc - should we do tablet work in a follow-up CL? https://codereview.chromium.org/620983002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java File chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java ...
6 years, 2 months ago (2014-10-17 00:51:28 UTC) #18
Ted C
lgtm - yeah, let's tackle the tablet stuff in another change. This one is big ...
6 years, 2 months ago (2014-10-17 01:09:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/620983002/160001
6 years, 2 months ago (2014-10-17 02:34:14 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/19216)
6 years, 2 months ago (2014-10-17 03:30:56 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/620983002/160001
6 years, 2 months ago (2014-10-17 03:32:18 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/19228)
6 years, 2 months ago (2014-10-17 04:28:53 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/620983002/180001
6 years, 2 months ago (2014-10-20 04:42:48 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/27019)
6 years, 2 months ago (2014-10-20 05:38:07 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/620983002/180001
6 years, 2 months ago (2014-10-20 05:51:57 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/27032)
6 years, 2 months ago (2014-10-20 06:57:23 UTC) #35
Finnur
So close! :) It looks to me like you are getting a NOTREACHED in LocationIconViewTest.HideOnSecondClick... ...
6 years, 2 months ago (2014-10-20 09:24:11 UTC) #36
Finnur
I think I have a solution to your test failure. https://codereview.chromium.org/620983002/diff/180001/chrome/browser/ui/website_settings/website_settings_ui.cc File chrome/browser/ui/website_settings/website_settings_ui.cc (right): https://codereview.chromium.org/620983002/diff/180001/chrome/browser/ui/website_settings/website_settings_ui.cc#newcode282 ...
6 years, 2 months ago (2014-10-21 15:49:34 UTC) #37
Finnur
... a compile error on Linux (is what I should have said) and future explorers ...
6 years, 2 months ago (2014-10-21 15:54:19 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/620983002/360001
6 years, 2 months ago (2014-10-22 09:12:22 UTC) #40
sashab
https://codereview.chromium.org/620983002/diff/180001/chrome/browser/ui/website_settings/website_settings_ui.cc File chrome/browser/ui/website_settings/website_settings_ui.cc (right): https://codereview.chromium.org/620983002/diff/180001/chrome/browser/ui/website_settings/website_settings_ui.cc#newcode282 chrome/browser/ui/website_settings/website_settings_ui.cc:282: break; On 2014/10/21 15:49:34, Finnur wrote: > I would ...
6 years, 2 months ago (2014-10-22 09:35:00 UTC) #41
commit-bot: I haz the power
Committed patchset #19 (id:360001)
6 years, 2 months ago (2014-10-22 10:08:45 UTC) #42
commit-bot: I haz the power
Patchset 19 (id:??) landed as https://crrev.com/97894ce12fc78d6f59e63314aefead3857816a28 Cr-Commit-Position: refs/heads/master@{#300658}
6 years, 2 months ago (2014-10-22 10:09:42 UTC) #43
Finnur
6 years, 2 months ago (2014-10-23 10:36:35 UTC) #44
Message was sent while issue was closed.
https://codereview.chromium.org/620983002/diff/360001/chrome/android/java/src...
File
chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java
(right):

https://codereview.chromium.org/620983002/diff/360001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java:183:
case ContentSettingsType.CONTENT_SETTINGS_TYPE_NOTIFICATIONS:
Hmmm... One thing I stumbled across when trying to consolidate icons. We (you
and I) don't seem to agree on what ContentSettingsType governs Push
Notifications. As far as I can tell, it is CONTENT_SETTINGS_TYPE_PUSH_MESSAGING
but you are using CONTENT_SETTINGS_TYPE_NOTIFICATIONS.

I believe mine is correct, because when I go to a test site and allow push
notifications, I query this value to find that decision. What say you? Am I
doing it wrong?

Powered by Google App Engine
This is Rietveld 408576698