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

Unified Diff: google_apis/gcm/tools/mcs_probe.cc

Issue 117513004: [GCM] Add TTL support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix probe tool Created 6 years, 12 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 | « google_apis/gcm/engine/mcs_client_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/tools/mcs_probe.cc
diff --git a/google_apis/gcm/tools/mcs_probe.cc b/google_apis/gcm/tools/mcs_probe.cc
index e958bd4ab9dfeb43a1f047ecf2e7b51ea0e37cfb..904632645c758ee3be123a5cf54e109548c8829f 100644
--- a/google_apis/gcm/tools/mcs_probe.cc
+++ b/google_apis/gcm/tools/mcs_probe.cc
@@ -20,6 +20,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/threading/thread.h"
#include "base/threading/worker_pool.h"
+#include "base/time/default_clock.h"
#include "base/values.h"
#include "google_apis/gcm/base/mcs_message.h"
#include "google_apis/gcm/base/mcs_util.h"
@@ -171,6 +172,8 @@ class MCSProbe {
uint64 restored_android_id,
uint64 restored_security_token);
+ base::DefaultClock clock_;
+
CommandLine command_line_;
base::FilePath rmq_path_;
@@ -251,7 +254,8 @@ void MCSProbe::Start() {
network_session_,
&net_log_));
rmq_store_.reset(new RMQStore(rmq_path_, file_thread_.message_loop_proxy()));
- mcs_client_.reset(new MCSClient(connection_factory_.get(),
+ mcs_client_.reset(new MCSClient(&clock_,
+ connection_factory_.get(),
rmq_store_.get()));
run_loop_.reset(new base::RunLoop());
rmq_store_->Load(base::Bind(&MCSClient::Initialize,
« no previous file with comments | « google_apis/gcm/engine/mcs_client_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698