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

Side by Side Diff: components/gcm_driver/fake_gcm_client.cc

Issue 378643002: [GCM] Check-in with signed in accounts associates device to user (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing compilation issue on android Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/gcm_driver/fake_gcm_client.h" 5 #include "components/gcm_driver/fake_gcm_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 void FakeGCMClient::SetRecording(bool recording) { 108 void FakeGCMClient::SetRecording(bool recording) {
109 } 109 }
110 110
111 void FakeGCMClient::ClearActivityLogs() { 111 void FakeGCMClient::ClearActivityLogs() {
112 } 112 }
113 113
114 GCMClient::GCMStatistics FakeGCMClient::GetStatistics() const { 114 GCMClient::GCMStatistics FakeGCMClient::GetStatistics() const {
115 return GCMClient::GCMStatistics(); 115 return GCMClient::GCMStatistics();
116 } 116 }
117 117
118 void FakeGCMClient::SetAccountsForCheckin(
119 const std::map<std::string, std::string>& account_tokens,
120 bool account_removed) {
121 }
122
118 void FakeGCMClient::PerformDelayedLoading() { 123 void FakeGCMClient::PerformDelayedLoading() {
119 DCHECK(ui_thread_->RunsTasksOnCurrentThread()); 124 DCHECK(ui_thread_->RunsTasksOnCurrentThread());
120 125
121 io_thread_->PostTask( 126 io_thread_->PostTask(
122 FROM_HERE, 127 FROM_HERE,
123 base::Bind(&FakeGCMClient::DoLoading, weak_ptr_factory_.GetWeakPtr())); 128 base::Bind(&FakeGCMClient::DoLoading, weak_ptr_factory_.GetWeakPtr()));
124 } 129 }
125 130
126 void FakeGCMClient::ReceiveMessage(const std::string& app_id, 131 void FakeGCMClient::ReceiveMessage(const std::string& app_id,
127 const IncomingMessage& message) { 132 const IncomingMessage& message) {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 } 219 }
215 220
216 void FakeGCMClient::MessageSendError( 221 void FakeGCMClient::MessageSendError(
217 const std::string& app_id, 222 const std::string& app_id,
218 const GCMClient::SendErrorDetails& send_error_details) { 223 const GCMClient::SendErrorDetails& send_error_details) {
219 if (delegate_) 224 if (delegate_)
220 delegate_->OnMessageSendError(app_id, send_error_details); 225 delegate_->OnMessageSendError(app_id, send_error_details);
221 } 226 }
222 227
223 } // namespace gcm 228 } // namespace gcm
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698