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

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

Issue 500383003: Remove implicit conversions from scoped_refptr to T* in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 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 "base/logging.h" 5 #include "base/logging.h"
6 #include "components/signin/core/browser/test_signin_client.h" 6 #include "components/signin/core/browser/test_signin_client.h"
7 #include "components/signin/core/browser/webdata/token_service_table.h" 7 #include "components/signin/core/browser/webdata/token_service_table.h"
8 #include "components/webdata/common/web_data_service_base.h" 8 #include "components/webdata/common/web_data_service_base.h"
9 #include "components/webdata/common/web_database_service.h" 9 #include "components/webdata/common/web_database_service.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 bool TestSigninClient::CanRevokeCredentials() { return true; } 42 bool TestSigninClient::CanRevokeCredentials() { return true; }
43 43
44 std::string TestSigninClient::GetSigninScopedDeviceId() { 44 std::string TestSigninClient::GetSigninScopedDeviceId() {
45 return std::string(); 45 return std::string();
46 } 46 }
47 47
48 void TestSigninClient::ClearSigninScopedDeviceId() { 48 void TestSigninClient::ClearSigninScopedDeviceId() {
49 } 49 }
50 50
51 net::URLRequestContextGetter* TestSigninClient::GetURLRequestContext() { 51 net::URLRequestContextGetter* TestSigninClient::GetURLRequestContext() {
52 return request_context_; 52 return request_context_.get();
53 } 53 }
54 54
55 void TestSigninClient::SetURLRequestContext( 55 void TestSigninClient::SetURLRequestContext(
56 net::URLRequestContextGetter* request_context) { 56 net::URLRequestContextGetter* request_context) {
57 request_context_ = request_context; 57 request_context_ = request_context;
58 } 58 }
59 59
60 std::string TestSigninClient::GetProductVersion() { return ""; } 60 std::string TestSigninClient::GetProductVersion() { return ""; }
61 61
62 void TestSigninClient::LoadDatabase() { 62 void TestSigninClient::LoadDatabase() {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 return signin_host_id_ != kInvalidProcessId; 119 return signin_host_id_ != kInvalidProcessId;
120 } 120 }
121 121
122 bool TestSigninClient::IsFirstRun() const { 122 bool TestSigninClient::IsFirstRun() const {
123 return false; 123 return false;
124 } 124 }
125 125
126 base::Time TestSigninClient::GetInstallDate() { 126 base::Time TestSigninClient::GetInstallDate() {
127 return base::Time::Now(); 127 return base::Time::Now();
128 } 128 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698