Index: extensions/browser/mojo/stash_backend_unittest.cc |
diff --git a/extensions/browser/mojo/stash_backend_unittest.cc b/extensions/browser/mojo/stash_backend_unittest.cc |
index be76bac00d7a9f3f5c6e75328768d94d70289ffb..ae142085413b71eb9965427f537080a9cde9300f 100644 |
--- a/extensions/browser/mojo/stash_backend_unittest.cc |
+++ b/extensions/browser/mojo/stash_backend_unittest.cc |
@@ -33,7 +33,7 @@ |
} // namespace |
-class StashServiceTest : public testing::Test { |
+class StashServiceTest : public testing::Test, public mojo::ErrorHandler { |
public: |
enum Event { |
EVENT_NONE, |
@@ -49,11 +49,11 @@ |
stash_backend_.reset(new StashBackend(base::Bind( |
&StashServiceTest::OnHandleReadyToRead, base::Unretained(this)))); |
stash_backend_->BindToRequest(mojo::GetProxy(&stash_service_)); |
- stash_service_.set_connection_error_handler(base::Bind(&OnConnectionError)); |
+ stash_service_.set_error_handler(this); |
handles_ready_ = 0; |
} |
- static void OnConnectionError() { FAIL() << "Unexpected connection error"; } |
+ void OnConnectionError() override { FAIL() << "Unexpected connection error"; } |
mojo::Array<StashedObjectPtr> RetrieveStash() { |
mojo::Array<StashedObjectPtr> stash; |
@@ -271,7 +271,7 @@ |
// exists. |
TEST_F(StashServiceTest, ServiceWithDeletedBackend) { |
stash_backend_.reset(); |
- stash_service_.set_connection_error_handler(base::Bind(&OnConnectionError)); |
+ stash_service_.set_error_handler(this); |
mojo::Array<StashedObjectPtr> stashed_objects; |
StashedObjectPtr stashed_object(StashedObject::New()); |