Index: chrome/browser/ui/views/simple_message_box_views.cc |
diff --git a/chrome/browser/ui/views/simple_message_box_views.cc b/chrome/browser/ui/views/simple_message_box_views.cc |
index 91c219394eff2a5b098cd8d88d6deecae3c9b67b..972b848334d592c12ea43d0c939aae813a64ee0b 100644 |
--- a/chrome/browser/ui/views/simple_message_box_views.cc |
+++ b/chrome/browser/ui/views/simple_message_box_views.cc |
@@ -223,7 +223,7 @@ MessageBoxResult ShowMessageBoxImpl(gfx::NativeWindow parent, |
// Fallback to logging with a default response or a Windows MessageBox. |
#if defined(OS_WIN) |
if (!base::MessageLoopForUI::IsCurrent() || |
- !base::MessageLoopForUI::current()->is_running() || |
+ !base::RunLoop::IsRunningOnCurrentThread() || |
!ResourceBundle::HasSharedInstance()) { |
LOG_IF(ERROR, !checkbox_text.empty()) << "Dialog checkbox won't be shown"; |
int result = ui::MessageBox(views::HWNDForNativeWindow(parent), message, |