Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: chrome/browser/signin/test_signin_client_builder.cc

Issue 1165913002: [Cleanup] Used scoped pointers in KeyedServiceFactory's SetTestingFactory functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finish renaming profile -> context Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "components/signin/core/browser/test_signin_client.h" 8 #include "components/signin/core/browser/test_signin_client.h"
9 9
10 class KeyedService;
11
12 namespace content {
13 class BrowserContext;
14 }
15
16 namespace signin { 10 namespace signin {
17 11
18 KeyedService* BuildTestSigninClient( 12 scoped_ptr<KeyedService> BuildTestSigninClient(
19 content::BrowserContext* context) { 13 content::BrowserContext* context) {
20 TestSigninClient* test_signin_client = 14 return make_scoped_ptr(
21 new TestSigninClient(static_cast<Profile*>(context)->GetPrefs()); 15 new TestSigninClient(static_cast<Profile*>(context)->GetPrefs()));
22 return test_signin_client;
23 } 16 }
24 17
25 } // namespace signin 18 } // namespace signin
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698