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

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

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_gaia_cookie_manager_service_builder.h" 5 #include "chrome/browser/signin/fake_gaia_cookie_manager_service_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 "chrome/browser/signin/chrome_signin_client_factory.h" 9 #include "chrome/browser/signin/chrome_signin_client_factory.h"
10 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 10 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
11 #include "components/keyed_service/core/keyed_service.h" 11 #include "components/keyed_service/core/keyed_service.h"
12 #include "components/signin/core/browser/fake_gaia_cookie_manager_service.h" 12 #include "components/signin/core/browser/fake_gaia_cookie_manager_service.h"
13 #include "components/signin/core/browser/profile_oauth2_token_service.h" 13 #include "components/signin/core/browser/profile_oauth2_token_service.h"
14 #include "google_apis/gaia/gaia_constants.h" 14 #include "google_apis/gaia/gaia_constants.h"
15 15
16 // static 16 // static
17 std::unique_ptr<KeyedService> BuildFakeGaiaCookieManagerService( 17 std::unique_ptr<KeyedService> BuildFakeGaiaCookieManagerService(
18 content::BrowserContext* context) { 18 content::BrowserContext* context) {
19 Profile* profile = Profile::FromBrowserContext(context); 19 Profile* profile = Profile::FromBrowserContext(context);
20 return base::WrapUnique(new FakeGaiaCookieManagerService( 20 return base::MakeUnique<FakeGaiaCookieManagerService>(
21 ProfileOAuth2TokenServiceFactory::GetForProfile(profile), 21 ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
22 GaiaConstants::kChromeSource, 22 GaiaConstants::kChromeSource,
23 ChromeSigninClientFactory::GetForProfile(profile))); 23 ChromeSigninClientFactory::GetForProfile(profile));
24 } 24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698