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/fake_profile_oauth2_token_service_builder.h" | 5 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h" |
6 | 6 |
| 7 #include <utility> |
| 8 |
7 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h" | 9 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h" |
8 | 10 |
9 // TODO(blundell): Should these be namespaced? | 11 // TODO(blundell): Should these be namespaced? |
10 scoped_ptr<KeyedService> BuildFakeProfileOAuth2TokenService( | 12 scoped_ptr<KeyedService> BuildFakeProfileOAuth2TokenService( |
11 content::BrowserContext* context) { | 13 content::BrowserContext* context) { |
12 scoped_ptr<FakeProfileOAuth2TokenService> service( | 14 scoped_ptr<FakeProfileOAuth2TokenService> service( |
13 new FakeProfileOAuth2TokenService()); | 15 new FakeProfileOAuth2TokenService()); |
14 return service.Pass(); | 16 return std::move(service); |
15 } | 17 } |
16 | 18 |
17 scoped_ptr<KeyedService> BuildAutoIssuingFakeProfileOAuth2TokenService( | 19 scoped_ptr<KeyedService> BuildAutoIssuingFakeProfileOAuth2TokenService( |
18 content::BrowserContext* context) { | 20 content::BrowserContext* context) { |
19 scoped_ptr<FakeProfileOAuth2TokenService> service( | 21 scoped_ptr<FakeProfileOAuth2TokenService> service( |
20 new FakeProfileOAuth2TokenService()); | 22 new FakeProfileOAuth2TokenService()); |
21 service->set_auto_post_fetch_response_on_message_loop(true); | 23 service->set_auto_post_fetch_response_on_message_loop(true); |
22 return service.Pass(); | 24 return std::move(service); |
23 } | 25 } |
OLD | NEW |