Skip to content

Commit

Permalink
Do not use deprecated MessageLoop::QuitWhenIdleClosure()
Browse files Browse the repository at this point in the history
  • Loading branch information
hferreiro authored and darkdh committed Aug 3, 2018
1 parent 7d0cef8 commit 6e65b4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion atom/browser/browser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void Browser::Shutdown() {

if (base::ThreadTaskRunnerHandle::Get()) {
base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
base::MessageLoop::QuitWhenIdleClosure());
base::RunLoop::QuitCurrentWhenIdleClosureDeprecated());
} else {
// There is no message loop available so we are in early stage.
exit(0);
Expand Down
3 changes: 2 additions & 1 deletion vendor/brightray/browser/browser_main_parts.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "content/browser/devtools/devtools_http_handler.h"
Expand Down Expand Up @@ -115,7 +116,7 @@ int BrowserX11IOErrorHandler(Display* d) {
g_in_x11_io_error_handler = true;
LOG(ERROR) << "X IO error received (X server probably went away)";
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
FROM_HERE, base::RunLoop::QuitCurrentWhenIdleClosureDeprecated());

return 0;
}
Expand Down

0 comments on commit 6e65b4a

Please sign in to comment.