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

Unified Diff: base/field_trial.h

Issue 8018: Clean up filter and content encoding handling ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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 | « base/base_lib.scons ('k') | net/base/bzip2_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/field_trial.h
===================================================================
--- base/field_trial.h (revision 4002)
+++ base/field_trial.h (working copy)
@@ -71,7 +71,10 @@
// data that is gathered before the application has reach sufficient
// stability (example: most DLL have loaded, etc.)
static Time application_start_time() {
- return global_->application_start_time_;
+ if (global_)
+ return global_->application_start_time_;
+ // For testing purposes only, or when we don't yet have a start time.
+ return Time::Now();
}
private:
« no previous file with comments | « base/base_lib.scons ('k') | net/base/bzip2_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698