| Index: content/shell/renderer/test_runner/mock_presentation_client.cc
|
| diff --git a/content/shell/renderer/test_runner/mock_presentation_client.cc b/content/shell/renderer/test_runner/mock_presentation_client.cc
|
| index eb1d4ff6284215e801a3f03aa41164e545276afc..02012bca821851a92d8e266e1e6c1aedfc266c70 100644
|
| --- a/content/shell/renderer/test_runner/mock_presentation_client.cc
|
| +++ b/content/shell/renderer/test_runner/mock_presentation_client.cc
|
| @@ -20,8 +20,8 @@
|
|
|
| MockPresentationClient::~MockPresentationClient() {
|
| DCHECK(!controller_);
|
| - DCHECK(service_);
|
| - service_->UnregisterPresentationClientMock(this);
|
| + if (service_)
|
| + service_->UnregisterPresentationClientMock(this);
|
| }
|
|
|
| void MockPresentationClient::SetScreenAvailability(bool available) {
|
| @@ -38,6 +38,7 @@
|
|
|
| void MockPresentationClient::Reset() {
|
| screen_availability_ = false;
|
| + service_ = nullptr;
|
| }
|
|
|
| void MockPresentationClient::setController(
|
|
|