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

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

Issue 1183843002: Do not create GCM store if it is not needed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback + fix test Created 5 years, 6 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') | tools/metrics/histograms/histograms.xml » ('j') | 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 8121f7c9af12459bc4a47d32532feee4e69a20e1..e1bd244d58fca38a9cee2d350e20af4561a35148 100644
--- a/google_apis/gcm/tools/mcs_probe.cc
+++ b/google_apis/gcm/tools/mcs_probe.cc
@@ -307,7 +307,8 @@ void MCSProbe::Start() {
gcm_store_.get(),
&recorder_));
run_loop_.reset(new base::RunLoop());
- gcm_store_->Load(base::Bind(&MCSProbe::LoadCallback,
+ gcm_store_->Load(GCMStore::CREATE_IF_MISSING,
+ base::Bind(&MCSProbe::LoadCallback,
base::Unretained(this)));
run_loop_->Run();
}
« no previous file with comments | « google_apis/gcm/engine/mcs_client_unittest.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698