Commit 03f64898 authored by sky@chromium.org's avatar sky@chromium.org

Removes some dead code from WebContentsImpl.

message_box_active_ is no longer used, and ironically is causing a
crash.

BUG=169059
TEST=none
R=jam@chromium.org


Review URL: https://chromiumcodereview.appspot.com/11833020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175990 0039d316-1c4b-4281-b951-d872f2087c98
parent 8ec1cc3a
......@@ -161,16 +161,6 @@ static int StartDownload(content::RenderViewHost* rvh,
return g_next_favicon_download_id;
}
#if defined(OS_WIN)
BOOL CALLBACK InvalidateWindow(HWND hwnd, LPARAM lparam) {
// Note: erase is required to properly paint some widgets borders. This can
// be seen with textfields.
InvalidateRect(hwnd, NULL, TRUE);
return TRUE;
}
#endif
ViewMsg_Navigate_Type::Value GetNavigationType(
BrowserContext* browser_context, const NavigationEntryImpl& entry,
NavigationController::ReloadType reload_type) {
......@@ -312,9 +302,6 @@ WebContentsImpl::WebContentsImpl(
is_being_destroyed_(false),
notify_disconnection_(false),
dialog_creator_(NULL),
#if defined(OS_WIN)
message_box_active_(CreateEvent(NULL, TRUE, FALSE, NULL)),
#endif
is_showing_before_unload_dialog_(false),
opener_web_ui_type_(WebUI::kNoWebUI),
closed_by_user_gesture_(false),
......
......@@ -29,10 +29,6 @@
#include "ui/gfx/size.h"
#include "webkit/glue/resource_type.h"
#if defined(OS_WIN)
#include "base/win/scoped_handle.h"
#endif
struct BrowserPluginHostMsg_CreateGuest_Params;
struct BrowserPluginHostMsg_ResizeGuest_Params;
struct ViewMsg_PostMessage_Params;
......@@ -791,13 +787,6 @@ class CONTENT_EXPORT WebContentsImpl
// delegate of this WebContentsImpl is nulled before its destructor is called.
JavaScriptDialogCreator* dialog_creator_;
#if defined(OS_WIN)
// Handle to an event that's set when the page is showing a message box (or
// equivalent constrained window). Plugin processes check this to know if
// they should pump messages then.
base::win::ScopedHandle message_box_active_;
#endif
// Set to true when there is an active "before unload" dialog. When true,
// we've forced the throbber to start in Navigate, and we need to remember to
// turn it off in OnJavaScriptMessageBoxClosed if the navigation is canceled.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment