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

Unified Diff: google_apis/gcm/gcm_client_impl.cc

Issue 135303002: Adding a user list (to be consumed by GCM Client Implementation) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing Win64 compilation issue and adding comments to test Created 6 years, 11 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/gcm_client_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/gcm_client_impl.cc
diff --git a/google_apis/gcm/gcm_client_impl.cc b/google_apis/gcm/gcm_client_impl.cc
index 86da9d592dc7477a0680eba9a4676f36c8830be9..8d090509036ca354fab4d14bdd6c79d423b2250d 100644
--- a/google_apis/gcm/gcm_client_impl.cc
+++ b/google_apis/gcm/gcm_client_impl.cc
@@ -4,6 +4,12 @@
#include "google_apis/gcm/gcm_client_impl.h"
+#include "base/files/file_path.h"
+#include "base/sequenced_task_runner.h"
+#include "google_apis/gcm/engine/gcm_store.h"
+#include "google_apis/gcm/engine/gcm_store_impl.h"
+#include "google_apis/gcm/engine/user_list.h"
+
namespace gcm {
GCMClientImpl::GCMClientImpl() {
@@ -12,6 +18,13 @@ GCMClientImpl::GCMClientImpl() {
GCMClientImpl::~GCMClientImpl() {
}
+void GCMClientImpl::Initialize(
+ const base::FilePath& path,
+ scoped_refptr<base::SequencedTaskRunner> blocking_task_runner) {
+ gcm_store_.reset(new GCMStoreImpl(path, blocking_task_runner));
+ user_list_.reset(new UserList(gcm_store_.get()));
+}
+
void GCMClientImpl::SetUserDelegate(const std::string& username,
Delegate* delegate) {
}
« no previous file with comments | « google_apis/gcm/gcm_client_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698