| Index: content/test/test_navigation_observer.cc
|
| diff --git a/content/test/test_navigation_observer.cc b/content/test/test_navigation_observer.cc
|
| index 89ff36fd575feb8ec98c98463596d8c7442c5a2e..50400c41350e4401cce0d37762bc50fa41aa1ed1 100644
|
| --- a/content/test/test_navigation_observer.cc
|
| +++ b/content/test/test_navigation_observer.cc
|
| @@ -87,8 +87,7 @@ void TestNavigationObserver::Wait() {
|
| WaitForObservation(
|
| base::Bind(&MessageLoop::Run,
|
| base::Unretained(MessageLoop::current())),
|
| - base::Bind(&MessageLoop::Quit,
|
| - base::Unretained(MessageLoop::current())));
|
| + MessageLoop::QuitAfterPendingClosure());
|
| }
|
|
|
| TestNavigationObserver::TestNavigationObserver(
|
| @@ -131,8 +130,10 @@ void TestNavigationObserver::Observe(
|
| ++navigations_completed_ == number_of_navigations_) {
|
| navigation_started_ = false;
|
| done_ = true;
|
| - if (running_)
|
| + if (running_) {
|
| + running_ = false;
|
| done_callback_.Run();
|
| + }
|
| }
|
| break;
|
| case NOTIFICATION_RENDER_VIEW_HOST_CREATED:
|
|
|