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

Side by Side Diff: chrome/browser/signin/fake_profile_oauth2_token_service_builder.h

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 #ifndef CHROME_BROWSER_SIGNIN_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_BUILDER_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_BUILDER_H_
6 #define CHROME_BROWSER_SIGNIN_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_BUILDER_H_ 6 #define CHROME_BROWSER_SIGNIN_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_BUILDER_H_
7 7
8 #include "base/memory/scoped_ptr.h"
9
8 class KeyedService; 10 class KeyedService;
9 11
10 namespace content { 12 namespace content {
11 class BrowserContext; 13 class BrowserContext;
12 } 14 }
13 15
14 // Helper function to be used with 16 // Helper function to be used with
15 // BrowserContextKeyedServiceFactory::SetTestingFactory() that returns a 17 // BrowserContextKeyedServiceFactory::SetTestingFactory() that returns a
16 // FakeProfileOAuth2TokenService object. 18 // FakeProfileOAuth2TokenService object.
17 KeyedService* BuildFakeProfileOAuth2TokenService( 19 scoped_ptr<KeyedService> BuildFakeProfileOAuth2TokenService(
18 content::BrowserContext* context); 20 content::BrowserContext* context);
19 21
20 // Helper function to be used with 22 // Helper function to be used with
21 // BrowserContextKeyedServiceFactory::SetTestingFactory() that creates a 23 // BrowserContextKeyedServiceFactory::SetTestingFactory() that creates a
22 // FakeProfileOAuth2TokenService object that posts fetch responses on the 24 // FakeProfileOAuth2TokenService object that posts fetch responses on the
23 // current message loop. 25 // current message loop.
24 KeyedService* BuildAutoIssuingFakeProfileOAuth2TokenService( 26 scoped_ptr<KeyedService> BuildAutoIssuingFakeProfileOAuth2TokenService(
25 content::BrowserContext* context); 27 content::BrowserContext* context);
26 28
27 #endif // CHROME_BROWSER_SIGNIN_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_BUILDER_H_ 29 #endif // CHROME_BROWSER_SIGNIN_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698