Commit cdfc35fe authored by Matt Menke's avatar Matt Menke Committed by Commit Bot

Remove IOThread::creation_time().

It's not currently used, and the class is eventually going away.

Bug: None
Change-Id: Iba2792c54663e155b4515efef02b150cd47f0afd
Reviewed-on: https://chromium-review.googlesource.com/571422Reviewed-by: default avatarEric Noyau <noyau@chromium.org>
Reviewed-by: default avatarBen Greenstein <bengr@chromium.org>
Commit-Queue: Ben Greenstein <bengr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#487329}
parent b2a28ec0
...@@ -308,7 +308,6 @@ IOThread::IOThread( ...@@ -308,7 +308,6 @@ IOThread::IOThread(
globals_(nullptr), globals_(nullptr),
is_quic_allowed_by_policy_(true), is_quic_allowed_by_policy_(true),
http_09_on_non_default_ports_enabled_(false), http_09_on_non_default_ports_enabled_(false),
creation_time_(base::TimeTicks::Now()),
weak_factory_(this) { weak_factory_(this) {
scoped_refptr<base::SingleThreadTaskRunner> io_thread_proxy = scoped_refptr<base::SingleThreadTaskRunner> io_thread_proxy =
BrowserThread::GetTaskRunnerForThread(BrowserThread::IO); BrowserThread::GetTaskRunnerForThread(BrowserThread::IO);
...@@ -750,10 +749,6 @@ void IOThread::DisableQuic() { ...@@ -750,10 +749,6 @@ void IOThread::DisableQuic() {
->DisableQuic(); ->DisableQuic();
} }
base::TimeTicks IOThread::creation_time() const {
return creation_time_;
}
net::SSLConfigService* IOThread::GetSSLConfigService() { net::SSLConfigService* IOThread::GetSSLConfigService() {
return ssl_config_service_manager_->Get(); return ssl_config_service_manager_->Get();
} }
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "base/memory/ref_counted.h" #include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h" #include "base/memory/weak_ptr.h"
#include "base/strings/string_piece.h" #include "base/strings/string_piece.h"
#include "base/time/time.h"
#include "build/build_config.h" #include "build/build_config.h"
#include "chrome/browser/net/chrome_network_delegate.h" #include "chrome/browser/net/chrome_network_delegate.h"
#include "chrome/browser/net/system_network_context_manager.h" #include "chrome/browser/net/system_network_context_manager.h"
...@@ -210,8 +209,6 @@ class IOThread : public content::BrowserThreadDelegate { ...@@ -210,8 +209,6 @@ class IOThread : public content::BrowserThreadDelegate {
// supported for simplicity and requires a browser restart. // supported for simplicity and requires a browser restart.
void DisableQuic(); void DisableQuic();
base::TimeTicks creation_time() const;
// Returns the callback for updating data use prefs. // Returns the callback for updating data use prefs.
metrics::UpdateUsagePrefCallbackType GetMetricsDataUseForwarder(); metrics::UpdateUsagePrefCallbackType GetMetricsDataUseForwarder();
...@@ -357,8 +354,6 @@ class IOThread : public content::BrowserThreadDelegate { ...@@ -357,8 +354,6 @@ class IOThread : public content::BrowserThreadDelegate {
// True if HTTP/0.9 is allowed on non-default ports by policy. // True if HTTP/0.9 is allowed on non-default ports by policy.
bool http_09_on_non_default_ports_enabled_; bool http_09_on_non_default_ports_enabled_;
const base::TimeTicks creation_time_;
base::WeakPtrFactory<IOThread> weak_factory_; base::WeakPtrFactory<IOThread> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(IOThread); DISALLOW_COPY_AND_ASSIGN(IOThread);
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include "base/macros.h" #include "base/macros.h"
#include "base/memory/ref_counted.h" #include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h" #include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "components/prefs/pref_member.h" #include "components/prefs/pref_member.h"
#include "components/ssl_config/ssl_config_service_manager.h" #include "components/ssl_config/ssl_config_service_manager.h"
#include "ios/web/public/web_thread_delegate.h" #include "ios/web/public/web_thread_delegate.h"
...@@ -153,8 +152,6 @@ class IOSIOThread : public web::WebThreadDelegate { ...@@ -153,8 +152,6 @@ class IOSIOThread : public web::WebThreadDelegate {
const net::HttpNetworkSession::Params& NetworkSessionParams() const; const net::HttpNetworkSession::Params& NetworkSessionParams() const;
base::TimeTicks creation_time() const;
protected: protected:
// A string describing the current application version. For example: "stable" // A string describing the current application version. For example: "stable"
// or "dev". An empty string is an acceptable value. This string is used to // or "dev". An empty string is an acceptable value. This string is used to
...@@ -225,8 +222,6 @@ class IOSIOThread : public web::WebThreadDelegate { ...@@ -225,8 +222,6 @@ class IOSIOThread : public web::WebThreadDelegate {
scoped_refptr<SystemURLRequestContextGetter> scoped_refptr<SystemURLRequestContextGetter>
system_url_request_context_getter_; system_url_request_context_getter_;
const base::TimeTicks creation_time_;
base::WeakPtrFactory<IOSIOThread> weak_factory_; base::WeakPtrFactory<IOSIOThread> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(IOSIOThread); DISALLOW_COPY_AND_ASSIGN(IOSIOThread);
......
...@@ -237,7 +237,6 @@ IOSIOThread::IOSIOThread(PrefService* local_state, ...@@ -237,7 +237,6 @@ IOSIOThread::IOSIOThread(PrefService* local_state,
net_log::ChromeNetLog* net_log) net_log::ChromeNetLog* net_log)
: net_log_(net_log), : net_log_(net_log),
globals_(nullptr), globals_(nullptr),
creation_time_(base::TimeTicks::Now()),
weak_factory_(this) { weak_factory_(this) {
pref_proxy_config_tracker_ = pref_proxy_config_tracker_ =
ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState(
...@@ -413,10 +412,6 @@ const net::HttpNetworkSession::Params& IOSIOThread::NetworkSessionParams() ...@@ -413,10 +412,6 @@ const net::HttpNetworkSession::Params& IOSIOThread::NetworkSessionParams()
return params_; return params_;
} }
base::TimeTicks IOSIOThread::creation_time() const {
return creation_time_;
}
net::SSLConfigService* IOSIOThread::GetSSLConfigService() { net::SSLConfigService* IOSIOThread::GetSSLConfigService() {
return ssl_config_service_manager_->Get(); return ssl_config_service_manager_->Get();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment