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

Side by Side Diff: chrome/browser/ui/website_settings/website_settings.cc

Issue 2006123002: New ordering of permissions in the Origin Info Bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/website_settings/website_settings.h" 5 #include "chrome/browser/ui/website_settings/website_settings.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 }; 94 };
95 95
96 // The list of content settings types to display on the Website Settings UI. THE 96 // The list of content settings types to display on the Website Settings UI. THE
97 // ORDER OF THESE ITEMS IS IMPORTANT. To propose changing it, email 97 // ORDER OF THESE ITEMS IS IMPORTANT. To propose changing it, email
98 // security-dev@chromium.org. 98 // security-dev@chromium.org.
99 ContentSettingsType kPermissionType[] = { 99 ContentSettingsType kPermissionType[] = {
100 CONTENT_SETTINGS_TYPE_GEOLOCATION, 100 CONTENT_SETTINGS_TYPE_GEOLOCATION,
101 CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, 101 CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA,
102 CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC, 102 CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC,
103 CONTENT_SETTINGS_TYPE_NOTIFICATIONS, 103 CONTENT_SETTINGS_TYPE_NOTIFICATIONS,
104 CONTENT_SETTINGS_TYPE_IMAGES,
105 CONTENT_SETTINGS_TYPE_JAVASCRIPT,
106 CONTENT_SETTINGS_TYPE_POPUPS,
107 CONTENT_SETTINGS_TYPE_FULLSCREEN,
108 CONTENT_SETTINGS_TYPE_AUTOMATIC_DOWNLOADS,
109 CONTENT_SETTINGS_TYPE_PLUGINS,
110 CONTENT_SETTINGS_TYPE_MOUSELOCK,
111 CONTENT_SETTINGS_TYPE_MIDI_SYSEX,
112 #if defined(OS_ANDROID) 104 #if defined(OS_ANDROID)
113 CONTENT_SETTINGS_TYPE_PUSH_MESSAGING, 105 CONTENT_SETTINGS_TYPE_PUSH_MESSAGING,
benwells 2016/05/24 01:46:05 Can you remind me why this is in the list?
palmer 2016/05/24 18:25:56 No, because I don't know. :) See the comments from
benwells 2016/05/25 00:51:36 From some analysis and discussion with Tim we thin
114 #endif 106 #endif
107 CONTENT_SETTINGS_TYPE_JAVASCRIPT,
108 CONTENT_SETTINGS_TYPE_PLUGINS,
109 CONTENT_SETTINGS_TYPE_IMAGES,
110 CONTENT_SETTINGS_TYPE_POPUPS,
111 CONTENT_SETTINGS_TYPE_BACKGROUND_SYNC,
115 CONTENT_SETTINGS_TYPE_KEYGEN, 112 CONTENT_SETTINGS_TYPE_KEYGEN,
116 CONTENT_SETTINGS_TYPE_BACKGROUND_SYNC, 113 CONTENT_SETTINGS_TYPE_AUTOMATIC_DOWNLOADS,
114 CONTENT_SETTINGS_TYPE_MOUSELOCK,
115 CONTENT_SETTINGS_TYPE_FULLSCREEN,
116 CONTENT_SETTINGS_TYPE_MIDI_SYSEX,
117 }; 117 };
118 118
119 // Determines whether to show permission |type| in the Website Settings UI. Only 119 // Determines whether to show permission |type| in the Website Settings UI. Only
120 // applies to permissions listed in |kPermissionType|. 120 // applies to permissions listed in |kPermissionType|.
121 bool ShouldShowPermission(ContentSettingsType type) { 121 bool ShouldShowPermission(ContentSettingsType type) {
122 // TODO(mgiuca): When simplified-fullscreen-ui is enabled permanently on 122 // TODO(mgiuca): When simplified-fullscreen-ui is enabled permanently on
123 // Android, remove these from kPermissionType, rather than having this check 123 // Android, remove these from kPermissionType, rather than having this check
124 // (http://crbug.com/577396). 124 // (http://crbug.com/577396).
125 #if !defined(OS_ANDROID) 125 #if !defined(OS_ANDROID)
126 // Fullscreen and mouselock settings are no longer shown (always allow). 126 // Fullscreen and mouselock settings are no longer shown (always allow).
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 info.connection_status = site_connection_status_; 762 info.connection_status = site_connection_status_;
763 info.connection_status_description = 763 info.connection_status_description =
764 UTF16ToUTF8(site_connection_details_); 764 UTF16ToUTF8(site_connection_details_);
765 info.identity_status = site_identity_status_; 765 info.identity_status = site_identity_status_;
766 info.identity_status_description = 766 info.identity_status_description =
767 UTF16ToUTF8(site_identity_details_); 767 UTF16ToUTF8(site_identity_details_);
768 info.cert_id = cert_id_; 768 info.cert_id = cert_id_;
769 info.show_ssl_decision_revoke_button = show_ssl_decision_revoke_button_; 769 info.show_ssl_decision_revoke_button = show_ssl_decision_revoke_button_;
770 ui_->SetIdentityInfo(info); 770 ui_->SetIdentityInfo(info);
771 } 771 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698