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/ssl_errors/error_classification.cc

Issue 1641413002: Makes GetBuildTime behave identically on all build types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to #96 Created 4 years, 10 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
Index: components/ssl_errors/error_classification.cc
diff --git a/components/ssl_errors/error_classification.cc b/components/ssl_errors/error_classification.cc
index f55d754faab06869a23309177189c4418ca6c128..5a221dfbaa76b8e82913f5805c8f9d8331110db8 100644
--- a/components/ssl_errors/error_classification.cc
+++ b/components/ssl_errors/error_classification.cc
@@ -218,11 +218,7 @@ bool IsUserClockInThePast(const base::Time& time_now) {
if (!g_testing_build_time.Get().is_null()) {
build_time = g_testing_build_time.Get();
} else {
-#if defined(DONT_EMBED_BUILD_METADATA) && !defined(OFFICIAL_BUILD)
- return false;
-#else
build_time = base::GetBuildTime();
-#endif
}
if (time_now < build_time - base::TimeDelta::FromDays(2))
@@ -235,11 +231,7 @@ bool IsUserClockInTheFuture(const base::Time& time_now) {
if (!g_testing_build_time.Get().is_null()) {
build_time = g_testing_build_time.Get();
} else {
-#if defined(DONT_EMBED_BUILD_METADATA) && !defined(OFFICIAL_BUILD)
- return false;
-#else
build_time = base::GetBuildTime();
-#endif
}
if (time_now > build_time + base::TimeDelta::FromDays(365))

Powered by Google App Engine
This is Rietveld 408576698