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

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

Issue 11138010: Remove TabContents from media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 587c2aa1f7fc377bad019a465ad8a92a676fc134..946f5c2f3b7463711cb6de646c074f6ccf9d97c1 100644
--- a/chrome/browser/ui/cocoa/extensions/media_galleries_dialog_cocoa.mm
+++ b/chrome/browser/ui/cocoa/extensions/media_galleries_dialog_cocoa.mm
@@ -95,10 +95,8 @@ MediaGalleriesDialogCocoa::MediaGalleriesDialogCocoa(
set_sheet(alert_);
// May be NULL during tests.
- if (controller->tab_contents()) {
- window_ = new ConstrainedWindowMac(
- controller->tab_contents()->web_contents(), this);
- }
+ if (controller->web_contents())
+ window_ = new ConstrainedWindowMac(controller->web_contents(), this);
}
MediaGalleriesDialogCocoa::~MediaGalleriesDialogCocoa() {

Powered by Google App Engine
This is Rietveld 408576698