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

Unified Diff: chrome/browser/ui/gtk/constrained_web_dialog_delegate_gtk.cc

Issue 11358027: Move constrained web dialog code back to chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros fix2 Created 8 years, 1 month 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/gtk/constrained_web_dialog_delegate_gtk.cc
diff --git a/chrome/browser/ui/gtk/constrained_web_dialog_delegate_gtk.cc b/chrome/browser/ui/gtk/constrained_web_dialog_delegate_gtk.cc
index eea432978a76b900d0617a747140d55ac0d4dfc2..5b44e39a679ef010b46c92ea44f417212855bdeb 100644
--- a/chrome/browser/ui/gtk/constrained_web_dialog_delegate_gtk.cc
+++ b/chrome/browser/ui/gtk/constrained_web_dialog_delegate_gtk.cc
@@ -16,8 +16,6 @@
#include "ui/web_dialogs/web_dialog_ui.h"
using content::WebContents;
-using ui::ConstrainedWebDialogDelegate;
-using ui::ConstrainedWebDialogUI;
using ui::WebDialogDelegate;
using ui::WebDialogWebContentsDelegate;
@@ -98,15 +96,15 @@ ConstrainedWebDialogDelegateGtk::ConstrainedWebDialogDelegateGtk(
gtk_widget_show_all(GetWidgetRoot());
}
-ConstrainedWebDialogDelegate* ui::CreateConstrainedWebDialog(
+ConstrainedWebDialogDelegate* CreateConstrainedWebDialog(
Profile* profile,
WebDialogDelegate* delegate,
WebDialogWebContentsDelegate* tab_delegate,
- TabContents* overshadowed) {
+ content::WebContents* web_contents) {
ConstrainedWebDialogDelegateGtk* constrained_delegate =
new ConstrainedWebDialogDelegateGtk(profile, delegate, tab_delegate);
- ConstrainedWindow* constrained_window = new ConstrainedWindowGtk(
- overshadowed->web_contents(), constrained_delegate);
+ ConstrainedWindow* constrained_window =
+ new ConstrainedWindowGtk(web_contents, constrained_delegate);
constrained_delegate->set_window(constrained_window);
return constrained_delegate;
}

Powered by Google App Engine
This is Rietveld 408576698