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

Unified Diff: chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.mm

Issue 1140223003: [PermissionBubble] identical ctor across platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permbubble
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h ('k') | 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/permission_bubble_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.mm b/chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.mm
index 6f9cfc5a075e377c5c0d93e96db57b70dea59ee5..60f2833357462f26295c41355af7c28fe8bacb8d 100644
--- a/chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.mm
+++ b/chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.mm
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h"
+#include "chrome/browser/ui/browser_window.h"
#import "chrome/browser/ui/cocoa/base_bubble_controller.h"
#import "chrome/browser/ui/cocoa/browser_window_controller.h"
#import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h"
@@ -12,8 +13,10 @@
#include "content/public/browser/web_contents.h"
#import "ui/base/cocoa/nsview_additions.h"
-PermissionBubbleCocoa::PermissionBubbleCocoa(NSWindow* parent_window)
- : parent_window_(parent_window), delegate_(NULL), bubbleController_(nil) {}
+PermissionBubbleCocoa::PermissionBubbleCocoa(Browser* browser)
+ : parent_window_(nil), delegate_(NULL), bubbleController_(nil) {
+ parent_window_ = browser->window()->GetNativeWindow();
Robert Sesek 2015/05/15 22:44:54 This can remain in the initializer list, if you wr
groby-ooo-7-16 2015/05/15 23:04:04 And so it can. Done.
+}
PermissionBubbleCocoa::~PermissionBubbleCocoa() {
if (delegate_)
« no previous file with comments | « chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698