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

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

Issue 330733002: Move IdentityProvider usage from GCMDriverDesktop to GCMProfileService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix after sync Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/gcm_driver/fake_gcm_client.h ('k') | components/gcm_driver/fake_gcm_driver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 15 matching lines...) Expand all
26 io_thread_(io_thread), 26 io_thread_(io_thread),
27 weak_ptr_factory_(this) { 27 weak_ptr_factory_(this) {
28 } 28 }
29 29
30 FakeGCMClient::~FakeGCMClient() { 30 FakeGCMClient::~FakeGCMClient() {
31 } 31 }
32 32
33 void FakeGCMClient::Initialize( 33 void FakeGCMClient::Initialize(
34 const ChromeBuildInfo& chrome_build_info, 34 const ChromeBuildInfo& chrome_build_info,
35 const base::FilePath& store_path, 35 const base::FilePath& store_path,
36 const std::vector<std::string>& account_ids,
37 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner, 36 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner,
38 const scoped_refptr<net::URLRequestContextGetter>& 37 const scoped_refptr<net::URLRequestContextGetter>&
39 url_request_context_getter, 38 url_request_context_getter,
40 scoped_ptr<Encryptor> encryptor, 39 scoped_ptr<Encryptor> encryptor,
41 Delegate* delegate) { 40 Delegate* delegate) {
42 delegate_ = delegate; 41 delegate_ = delegate;
43 } 42 }
44 43
45 void FakeGCMClient::Start() { 44 void FakeGCMClient::Start() {
46 DCHECK(io_thread_->RunsTasksOnCurrentThread()); 45 DCHECK(io_thread_->RunsTasksOnCurrentThread());
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 } 214 }
216 215
217 void FakeGCMClient::MessageSendError( 216 void FakeGCMClient::MessageSendError(
218 const std::string& app_id, 217 const std::string& app_id,
219 const GCMClient::SendErrorDetails& send_error_details) { 218 const GCMClient::SendErrorDetails& send_error_details) {
220 if (delegate_) 219 if (delegate_)
221 delegate_->OnMessageSendError(app_id, send_error_details); 220 delegate_->OnMessageSendError(app_id, send_error_details);
222 } 221 }
223 222
224 } // namespace gcm 223 } // namespace gcm
OLDNEW
« no previous file with comments | « components/gcm_driver/fake_gcm_client.h ('k') | components/gcm_driver/fake_gcm_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698