Fix cfi-cast failure in CefBrowserMessageLoop::current (issue #2472)

This commit is contained in:
Marshall Greenblatt
2018-07-12 10:57:06 -07:00
parent 0d12959a50
commit 7139f01103
3 changed files with 5 additions and 30 deletions

View File

@@ -7,7 +7,6 @@
#include "libcef/browser/browser_info.h"
#include "libcef/browser/browser_info_manager.h"
#include "libcef/browser/browser_main.h"
#include "libcef/browser/browser_message_loop.h"
#include "libcef/browser/chrome_browser_process_stub.h"
#include "libcef/browser/thread_util.h"
#include "libcef/browser/trace_subscriber.h"
@@ -21,6 +20,7 @@
#include "base/command_line.h"
#include "base/debug/debugger.h"
#include "base/files/file_util.h"
#include "base/run_loop.h"
#include "base/synchronization/waitable_event.h"
#include "components/network_session_configurator/common/network_switches.h"
#include "content/app/content_service_manager_main_delegate.h"
@@ -271,7 +271,8 @@ void CefDoMessageLoopWork() {
return;
}
CefBrowserMessageLoop::current()->DoMessageLoopIteration();
base::RunLoop run_loop;
run_loop.RunUntilIdle();
}
void CefRunMessageLoop() {
@@ -287,7 +288,8 @@ void CefRunMessageLoop() {
return;
}
CefBrowserMessageLoop::current()->RunMessageLoop();
base::RunLoop run_loop;
run_loop.Run();
}
void CefQuitMessageLoop() {