summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/web_contents.cc6
-rw-r--r--chrome/browser/tab_contents/web_contents.h5
2 files changed, 4 insertions, 7 deletions
diff --git a/chrome/browser/tab_contents/web_contents.cc b/chrome/browser/tab_contents/web_contents.cc
index ee734d4..9cd5550 100644
--- a/chrome/browser/tab_contents/web_contents.cc
+++ b/chrome/browser/tab_contents/web_contents.cc
@@ -20,7 +20,6 @@
#include "chrome/browser/download/download_manager.h"
#include "chrome/browser/gears_integration.h"
#include "chrome/browser/google_util.h"
-#include "chrome/browser/js_before_unload_handler.h"
#include "chrome/browser/jsmessage_box_handler.h"
#include "chrome/browser/load_from_memory_cache_details.h"
#include "chrome/browser/load_notification_details.h"
@@ -1194,10 +1193,9 @@ void WebContents::RunJavaScriptMessage(
}
}
-void WebContents::RunBeforeUnloadConfirm(const GURL& frame_url,
- const std::wstring& message,
+void WebContents::RunBeforeUnloadConfirm(const std::wstring& message,
IPC::Message* reply_msg) {
- RunBeforeUnloadDialog(this, frame_url, message, reply_msg);
+ RunBeforeUnloadDialog(this, message, reply_msg);
}
void WebContents::ShowModalHTMLDialog(const GURL& url, int width, int height,
diff --git a/chrome/browser/tab_contents/web_contents.h b/chrome/browser/tab_contents/web_contents.h
index 07e0db3..be0fe27 100644
--- a/chrome/browser/tab_contents/web_contents.h
+++ b/chrome/browser/tab_contents/web_contents.h
@@ -236,7 +236,7 @@ class WebContents : public TabContents,
suppress_javascript_messages_ = suppress_javascript_messages;
}
- // JavascriptMessageBoxHandler calls this when the dialog is closed.
+ // AppModalDialog calls this when the dialog is closed.
void OnJavaScriptMessageBoxClosed(IPC::Message* reply_msg,
bool success,
const std::wstring& prompt);
@@ -378,8 +378,7 @@ class WebContents : public TabContents,
const int flags,
IPC::Message* reply_msg,
bool* did_suppress_message);
- virtual void RunBeforeUnloadConfirm(const GURL& frame_url,
- const std::wstring& message,
+ virtual void RunBeforeUnloadConfirm(const std::wstring& message,
IPC::Message* reply_msg);
virtual void ShowModalHTMLDialog(const GURL& url, int width, int height,
const std::string& json_arguments,