OLD | NEW |
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 Loading... |
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 |
OLD | NEW |