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

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: Fix trybots 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
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..4ba7eb27ded4130bba34b095a08c47fe36234e4e 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_NEW_STORE_IF_NOT_EXISTS,
+ base::Bind(&MCSProbe::LoadCallback,
base::Unretained(this)));
run_loop_->Run();
}

Powered by Google App Engine
This is Rietveld 408576698