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

Unified Diff: chrome/browser/ui/cocoa/extensions/media_galleries_dialog_cocoa.mm

Issue 11111022: Remove TabContents from constrained windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unrelated gtk code Created 8 years, 2 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/ui/cocoa/extensions/media_galleries_dialog_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/extensions/media_galleries_dialog_cocoa.mm b/chrome/browser/ui/cocoa/extensions/media_galleries_dialog_cocoa.mm
index 57accefea9b156d617da3a64a1e48a88f6c58c4d..587c2aa1f7fc377bad019a465ad8a92a676fc134 100644
--- a/chrome/browser/ui/cocoa/extensions/media_galleries_dialog_cocoa.mm
+++ b/chrome/browser/ui/cocoa/extensions/media_galleries_dialog_cocoa.mm
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/cocoa/extensions/media_galleries_dialog_cocoa.h"
#include "base/sys_string_conversions.h"
+#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
@@ -94,8 +95,10 @@ MediaGalleriesDialogCocoa::MediaGalleriesDialogCocoa(
set_sheet(alert_);
// May be NULL during tests.
- if (controller->tab_contents())
- window_ = new ConstrainedWindowMac(controller->tab_contents(), this);
+ if (controller->tab_contents()) {
+ window_ = new ConstrainedWindowMac(
+ controller->tab_contents()->web_contents(), this);
+ }
}
MediaGalleriesDialogCocoa::~MediaGalleriesDialogCocoa() {
« no previous file with comments | « chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm ('k') | chrome/browser/ui/cocoa/login_prompt_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698