| Index: chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
|
| diff --git a/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc b/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
|
| index 145b6e3a52935f64e8305ce52e1fb197a29bb972..a32305edfcef21746d7e8d965440d5fe1c71a950 100644
|
| --- a/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
|
| +++ b/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
|
| @@ -149,7 +149,7 @@ class FakeProtocolClientWorker
|
| private:
|
| ~FakeProtocolClientWorker() override {}
|
|
|
| - void CheckIsDefault() override {
|
| + void CheckIsDefault(bool is_following_set_as_default) override {
|
| shell_integration::DefaultWebClientState state =
|
| shell_integration::IS_DEFAULT;
|
| if (force_failure_)
|
| @@ -158,15 +158,10 @@ class FakeProtocolClientWorker
|
| BrowserThread::PostTask(
|
| BrowserThread::UI, FROM_HERE,
|
| base::Bind(&FakeProtocolClientWorker::OnCheckIsDefaultComplete, this,
|
| - state));
|
| + state, is_following_set_as_default));
|
| }
|
|
|
| - void SetAsDefault() override {
|
| - BrowserThread::PostTask(
|
| - BrowserThread::UI, FROM_HERE,
|
| - base::Bind(&FakeProtocolClientWorker::OnSetAsDefaultAttemptComplete,
|
| - this, AttemptResult::SUCCESS));
|
| - }
|
| + void SetAsDefault() override { CheckIsDefault(true); }
|
|
|
| private:
|
| bool force_failure_;
|
|
|