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

Side by Side Diff: components/signin/core/browser/test_signin_client.cc

Issue 2757873002: Change SigninClient::CreateGaiaAuthFetcher return type to unique_ptr (Closed)
Patch Set: Created 3 years, 9 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 "components/signin/core/browser/test_signin_client.h" 5 #include "components/signin/core/browser/test_signin_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 #include "components/signin/core/browser/webdata/token_service_table.h" 10 #include "components/signin/core/browser/webdata/token_service_table.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 97
98 void TestSigninClient::RemoveContentSettingsObserver( 98 void TestSigninClient::RemoveContentSettingsObserver(
99 content_settings::Observer* observer) { 99 content_settings::Observer* observer) {
100 } 100 }
101 101
102 void TestSigninClient::DelayNetworkCall(const base::Closure& callback) { 102 void TestSigninClient::DelayNetworkCall(const base::Closure& callback) {
103 callback.Run(); 103 callback.Run();
104 } 104 }
105 105
106 GaiaAuthFetcher* TestSigninClient::CreateGaiaAuthFetcher( 106 std::unique_ptr<GaiaAuthFetcher> TestSigninClient::CreateGaiaAuthFetcher(
107 GaiaAuthConsumer* consumer, 107 GaiaAuthConsumer* consumer,
108 const std::string& source, 108 const std::string& source,
109 net::URLRequestContextGetter* getter) { 109 net::URLRequestContextGetter* getter) {
110 return new GaiaAuthFetcher(consumer, source, getter); 110 return base::MakeUnique<GaiaAuthFetcher>(consumer, source, getter);
111 } 111 }
OLDNEW
« no previous file with comments | « components/signin/core/browser/test_signin_client.h ('k') | google_apis/gaia/ubertoken_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698