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

Unified Diff: chrome/browser/cocoa/content_setting_bubble_cocoa.mm

Issue 3299020: Remove vestigial cookie/web app permissions prompting UI now that the async U... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/content_setting_bubble_cocoa.mm
===================================================================
--- chrome/browser/cocoa/content_setting_bubble_cocoa.mm (revision 59533)
+++ chrome/browser/cocoa/content_setting_bubble_cocoa.mm (working copy)
@@ -436,18 +436,6 @@
[[self window] setFrame:frame display:NO];
}
-- (void)removeInfoButton {
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableCookiePrompt)) {
- // Remove info button and resize vertically.
- int deltaY = NSHeight([infoButton_ frame]);
- [infoButton_ removeFromSuperview];
- NSRect frame = [[self window] frame];
- frame.size.height -= deltaY;
- [[self window] setFrame:frame display:NO];
- }
-}
-
- (void)awakeFromNib {
[[self bubble] setBubbleType:info_bubble::kWhiteInfoBubble];
[[self bubble] setArrowLocation:info_bubble::kTopRight];
@@ -462,8 +450,6 @@
[self sizeToFitLoadPluginsButton];
[self initializeBlockedPluginsList];
}
- if (type == CONTENT_SETTINGS_TYPE_COOKIES)
- [self removeInfoButton];
if (allowBlockRadioGroup_) // not bound in cookie bubble xib
[self initializeRadioGroup];

Powered by Google App Engine
This is Rietveld 408576698