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

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

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 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
« no previous file with comments | « components/gcm_driver/DEPS ('k') | components/history.gypi » ('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/gcm_desktop_utils.h" 5 #include "components/gcm_driver/gcm_desktop_utils.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
11 #include "base/threading/sequenced_worker_pool.h" 11 #include "base/threading/sequenced_worker_pool.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "components/gcm_driver/gcm_client_factory.h" 13 #include "components/gcm_driver/gcm_client_factory.h"
14 #include "components/gcm_driver/gcm_driver.h" 14 #include "components/gcm_driver/gcm_driver.h"
15 #include "components/gcm_driver/gcm_driver_desktop.h" 15 #include "components/gcm_driver/gcm_driver_desktop.h"
16 #include "components/sync_driver/sync_util.h" 16 #include "components/sync/driver/sync_util.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 namespace gcm { 19 namespace gcm {
20 20
21 namespace { 21 namespace {
22 22
23 const char kChannelStatusRelativePath[] = "/experimentstatus"; 23 const char kChannelStatusRelativePath[] = "/experimentstatus";
24 24
25 GCMClient::ChromePlatform GetPlatform() { 25 GCMClient::ChromePlatform GetPlatform() {
26 #if defined(OS_WIN) 26 #if defined(OS_WIN)
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, 96 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner,
97 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner) { 97 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner) {
98 return std::unique_ptr<GCMDriver>(new GCMDriverDesktop( 98 return std::unique_ptr<GCMDriver>(new GCMDriverDesktop(
99 std::move(gcm_client_factory), GetChromeBuildInfo(channel), 99 std::move(gcm_client_factory), GetChromeBuildInfo(channel),
100 GetChannelStatusRequestUrl(channel), GetUserAgent(channel), prefs, 100 GetChannelStatusRequestUrl(channel), GetUserAgent(channel), prefs,
101 store_path, request_context, ui_task_runner, io_task_runner, 101 store_path, request_context, ui_task_runner, io_task_runner,
102 blocking_task_runner)); 102 blocking_task_runner));
103 } 103 }
104 104
105 } // namespace gcm 105 } // namespace gcm
OLDNEW
« no previous file with comments | « components/gcm_driver/DEPS ('k') | components/history.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698