OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/test/content_browser_test_utils.h" | 5 #include "content/test/content_browser_test_utils.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 return shell_; | 77 return shell_; |
78 | 78 |
79 runner_ = new MessageLoopRunner(); | 79 runner_ = new MessageLoopRunner(); |
80 runner_->Run(); | 80 runner_->Run(); |
81 return shell_; | 81 return shell_; |
82 } | 82 } |
83 | 83 |
84 void ShellAddedObserver::ShellCreated(Shell* shell) { | 84 void ShellAddedObserver::ShellCreated(Shell* shell) { |
85 DCHECK(!shell_); | 85 DCHECK(!shell_); |
86 shell_ = shell; | 86 shell_ = shell; |
87 if (runner_) | 87 if (runner_.get()) |
88 runner_->QuitClosure().Run(); | 88 runner_->QuitClosure().Run(); |
89 } | 89 } |
90 | 90 |
91 } // namespace content | 91 } // namespace content |
OLD | NEW |