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

Side by Side Diff: chrome/browser/services/gcm/fake_gcm_client_factory.cc

Issue 290013011: Move all remaining files to gcm_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 6 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/services/gcm/fake_gcm_client_factory.h"
6
7 #include "base/memory/scoped_ptr.h"
8 #include "base/sequenced_task_runner.h"
9 #include "google_apis/gcm/gcm_client.h"
10
11 namespace gcm {
12
13 FakeGCMClientFactory::FakeGCMClientFactory(
14 FakeGCMClient::StartMode gcm_client_start_mode,
15 const scoped_refptr<base::SequencedTaskRunner>& ui_thread,
16 const scoped_refptr<base::SequencedTaskRunner>& io_thread)
17 : gcm_client_start_mode_(gcm_client_start_mode),
18 ui_thread_(ui_thread),
19 io_thread_(io_thread) {
20 }
21
22 FakeGCMClientFactory::~FakeGCMClientFactory() {
23 }
24
25 scoped_ptr<GCMClient> FakeGCMClientFactory::BuildInstance() {
26 return scoped_ptr<GCMClient>(new FakeGCMClient(
27 gcm_client_start_mode_, ui_thread_, io_thread_));
28 }
29
30 } // namespace gcm
OLDNEW
« no previous file with comments | « chrome/browser/services/gcm/fake_gcm_client_factory.h ('k') | chrome/browser/services/gcm/fake_gcm_profile_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698