summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 18:29:56 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 18:29:56 +0000
commite1f34499ce79eca58e76e9ea1bdeef2402eb4607 (patch)
tree50c640a884a0a8e14e2dfcd9d99e71f66df9100c /chrome/browser/tab_contents
parenta023701ae0919ac47093e660bb400c6b87408460 (diff)
downloadchromium_src-e1f34499ce79eca58e76e9ea1bdeef2402eb4607.zip
chromium_src-e1f34499ce79eca58e76e9ea1bdeef2402eb4607.tar.gz
chromium_src-e1f34499ce79eca58e76e9ea1bdeef2402eb4607.tar.bz2
Reverting 11002.
Review URL: http://codereview.chromium.org/39203 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11008 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/web_contents.cc10
-rw-r--r--chrome/browser/tab_contents/web_contents.h4
2 files changed, 5 insertions, 9 deletions
diff --git a/chrome/browser/tab_contents/web_contents.cc b/chrome/browser/tab_contents/web_contents.cc
index 55c3180..6ca0726 100644
--- a/chrome/browser/tab_contents/web_contents.cc
+++ b/chrome/browser/tab_contents/web_contents.cc
@@ -1047,7 +1047,6 @@ void WebContents::RunFileChooser(bool multiple_files,
void WebContents::RunJavaScriptMessage(
const std::wstring& message,
const std::wstring& default_prompt,
- const GURL& frame_url,
const int flags,
IPC::Message* reply_msg,
bool* did_suppress_message) {
@@ -1071,19 +1070,18 @@ void WebContents::RunJavaScriptMessage(
TimeDelta::FromMilliseconds(kJavascriptMessageExpectedDelay))
show_suppress_checkbox = true;
- RunJavascriptMessageBox(this, frame_url, flags, message, default_prompt,
+ RunJavascriptMessageBox(this, flags, message, default_prompt,
show_suppress_checkbox, reply_msg);
} else {
// If we are suppressing messages, just reply as is if the user immediately
// pressed "Cancel".
- OnJavaScriptMessageBoxClosed(reply_msg, false, std::wstring());
+ OnJavaScriptMessageBoxClosed(reply_msg, false, L"");
}
}
-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 e1d21de..110e923 100644
--- a/chrome/browser/tab_contents/web_contents.h
+++ b/chrome/browser/tab_contents/web_contents.h
@@ -344,12 +344,10 @@ class WebContents : public TabContents,
const std::wstring& filter);
virtual void RunJavaScriptMessage(const std::wstring& message,
const std::wstring& default_prompt,
- const GURL& frame_url,
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,