| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/signin/test_signin_client_builder.h" | 5 #include "chrome/browser/signin/test_signin_client_builder.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "components/signin/core/browser/test_signin_client.h" | 9 #include "components/signin/core/browser/test_signin_client.h" |
| 10 | 10 |
| 11 namespace signin { | 11 namespace signin { |
| 12 | 12 |
| 13 std::unique_ptr<KeyedService> BuildTestSigninClient( | 13 std::unique_ptr<KeyedService> BuildTestSigninClient( |
| 14 content::BrowserContext* context) { | 14 content::BrowserContext* context) { |
| 15 return base::WrapUnique( | 15 return base::MakeUnique<TestSigninClient>( |
| 16 new TestSigninClient(static_cast<Profile*>(context)->GetPrefs())); | 16 static_cast<Profile*>(context)->GetPrefs()); |
| 17 } | 17 } |
| 18 | 18 |
| 19 } // namespace signin | 19 } // namespace signin |
| OLD | NEW |