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

Unified Diff: components/signin/core/browser/test_signin_client.cc

Issue 466043002: Track when user signs in the profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android doesn't track first run within chrome c++ Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/signin/core/browser/test_signin_client.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/core/browser/test_signin_client.cc
diff --git a/components/signin/core/browser/test_signin_client.cc b/components/signin/core/browser/test_signin_client.cc
index 4b62c719193ad9fa32efcdc4bfed5e95c82a6043..ab63db9940654770a86bee9317d3520ffabe0e52 100644
--- a/components/signin/core/browser/test_signin_client.cc
+++ b/components/signin/core/browser/test_signin_client.cc
@@ -52,6 +52,11 @@ net::URLRequestContextGetter* TestSigninClient::GetURLRequestContext() {
return request_context_;
}
+void TestSigninClient::SetURLRequestContext(
+ net::URLRequestContextGetter* request_context) {
+ request_context_ = request_context;
+}
+
std::string TestSigninClient::GetProductVersion() { return ""; }
void TestSigninClient::LoadDatabase() {
@@ -113,3 +118,11 @@ bool TestSigninClient::IsSigninProcess(int process_id) const {
bool TestSigninClient::HasSigninProcess() const {
return signin_host_id_ != kInvalidProcessId;
}
+
+bool TestSigninClient::IsFirstRun() const {
+ return false;
+}
+
+base::Time TestSigninClient::GetInstallDate() {
+ return base::Time::Now();
+}
« no previous file with comments | « components/signin/core/browser/test_signin_client.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698