Get rid of the static ConstrainedWindow::CreateConstrainedDialog method that was declared in content but defined in chrome. I initially tried to move the create method to be a member function on TabContentsView, but that would require passing in the ConstrainedWindowDelegate, which is a typedef to a chrome type. So instead I made the chrome code that called TabContents::CreateConstrainedDialog create the dialog.

BUG=76697
Review URL: http://codereview.chromium.org/7719020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98089 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/repost_form_warning_controller.h b/chrome/browser/repost_form_warning_controller.h
index 2c1bcff..d558f655 100644
--- a/chrome/browser/repost_form_warning_controller.h
+++ b/chrome/browser/repost_form_warning_controller.h
@@ -20,15 +20,14 @@
   explicit RepostFormWarningController(TabContents* tab_contents);
   virtual ~RepostFormWarningController();
 
-  // Show the warning dialog.
-  void Show(ConstrainedWindowDelegate* window_delegate);
-
   // Cancel the reload.
   void Cancel();
 
   // Continue the reload.
   void Continue();
 
+  void set_window(ConstrainedWindow* window) { window_ = window; }
+
  private:
   // NotificationObserver implementation.
   // Watch for a new load or a closed tab and dismiss the dialog if they occur.