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

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

Issue 695553002: Account reconcilor: Use cookie store cookie changed subscription. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 6 years, 1 month 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
« no previous file with comments | « components/signin/core/browser/test_signin_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 base::MessageLoopProxy::current(), 72 base::MessageLoopProxy::current(),
73 base::MessageLoopProxy::current(), 73 base::MessageLoopProxy::current(),
74 WebDataServiceBase::ProfileErrorCallback()); 74 WebDataServiceBase::ProfileErrorCallback());
75 database_->Init(); 75 database_->Init();
76 } 76 }
77 77
78 bool TestSigninClient::ShouldMergeSigninCredentialsIntoCookieJar() { 78 bool TestSigninClient::ShouldMergeSigninCredentialsIntoCookieJar() {
79 return true; 79 return true;
80 } 80 }
81 81
82 scoped_ptr<SigninClient::CookieChangedCallbackList::Subscription> 82 scoped_ptr<SigninClient::CookieChangedSubscription>
83 TestSigninClient::AddCookieChangedCallback( 83 TestSigninClient::AddCookieChangedCallback(
84 const SigninClient::CookieChangedCallback& callback) { 84 const GURL& url,
85 return cookie_callbacks_.Add(callback); 85 const std::string& name,
86 const net::CookieStore::CookieChangedCallback& callback) {
87 return scoped_ptr<SigninClient::CookieChangedSubscription>(
88 new SigninClient::CookieChangedSubscription);
86 } 89 }
87 90
88 #if defined(OS_IOS) 91 #if defined(OS_IOS)
89 ios::ProfileOAuth2TokenServiceIOSProvider* TestSigninClient::GetIOSProvider() { 92 ios::ProfileOAuth2TokenServiceIOSProvider* TestSigninClient::GetIOSProvider() {
90 return GetIOSProviderAsFake(); 93 return GetIOSProviderAsFake();
91 } 94 }
92 95
93 ios::FakeProfileOAuth2TokenServiceIOSProvider* 96 ios::FakeProfileOAuth2TokenServiceIOSProvider*
94 TestSigninClient::GetIOSProviderAsFake() { 97 TestSigninClient::GetIOSProviderAsFake() {
95 if (!iosProvider_) { 98 if (!iosProvider_) {
(...skipping 23 matching lines...) Expand all
119 return signin_host_id_ != kInvalidProcessId; 122 return signin_host_id_ != kInvalidProcessId;
120 } 123 }
121 124
122 bool TestSigninClient::IsFirstRun() const { 125 bool TestSigninClient::IsFirstRun() const {
123 return false; 126 return false;
124 } 127 }
125 128
126 base::Time TestSigninClient::GetInstallDate() { 129 base::Time TestSigninClient::GetInstallDate() {
127 return base::Time::Now(); 130 return base::Time::Now();
128 } 131 }
OLDNEW
« no previous file with comments | « components/signin/core/browser/test_signin_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698