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

Unified Diff: chrome/browser/ui/cocoa/website_settings_bubble_controller.mm

Issue 11571010: fixed the DCHECK and also corrected the website setting UI for media (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/website_settings_bubble_controller.mm
diff --git a/chrome/browser/ui/cocoa/website_settings_bubble_controller.mm b/chrome/browser/ui/cocoa/website_settings_bubble_controller.mm
index ee9d575a15fca276cbf899a9d43178925d621977..333e9b254a04e5d92abfcfe57176b5d51a526cc8 100644
--- a/chrome/browser/ui/cocoa/website_settings_bubble_controller.mm
+++ b/chrome/browser/ui/cocoa/website_settings_bubble_controller.mm
@@ -893,7 +893,13 @@ NSColor* IdentityVerifiedTextColor() {
permissionInfo.default_setting))];
[[button lastItem] setTag:CONTENT_SETTING_DEFAULT];
- [button selectItemWithTag:permissionInfo.setting];
+ if (permissionInfo.type == CONTENT_SETTINGS_TYPE_MEDIASTREAM &&
markusheintz_ 2012/12/14 10:49:04 Sorry I think I miss some detail. Why do we need t
markusheintz_ 2012/12/14 15:10:04 Alrigth after discussing this offline via chat I'm
+ permissionInfo.setting == CONTENT_SETTING_ALLOW) {
+ // Show the default setting since MEDIASTREAM does not support allow yet.
+ [button selectItemWithTag:CONTENT_SETTING_DEFAULT];
+ } else {
+ [button selectItemWithTag:permissionInfo.setting];
+ }
// Set the button title.
scoped_nsobject<NSMenuItem> titleItem([[NSMenuItem alloc] init]);
@@ -1120,11 +1126,6 @@ NSColor* IdentityVerifiedTextColor() {
}
- (void)setPermissionInfo:(const PermissionInfoList&)permissionInfoList {
- // The contents of the permissions view can cause the whole window to get
- // bigger, but currently permissions are always set before cookie info.
- // Check to make sure that's still the case.
- DCHECK_EQ(0U, [[cookiesView_ subviews] count]);
markusheintz_ 2012/12/14 10:49:04 Patrick Dubroy will fix the DCHECK issue and uploa
-
[permissionsView_ setSubviews:[NSArray array]];
NSPoint controlOrigin = NSMakePoint(kFramePadding, 0);
« 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