OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_profile_service.h" | 5 #include "components/gcm_driver/gcm_profile_service.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/prefs/pref_service.h" | |
13 #include "build/build_config.h" | 12 #include "build/build_config.h" |
14 #include "components/gcm_driver/gcm_driver.h" | 13 #include "components/gcm_driver/gcm_driver.h" |
15 #include "components/gcm_driver/gcm_driver_constants.h" | 14 #include "components/gcm_driver/gcm_driver_constants.h" |
16 #include "components/pref_registry/pref_registry_syncable.h" | 15 #include "components/pref_registry/pref_registry_syncable.h" |
| 16 #include "components/prefs/pref_service.h" |
17 | 17 |
18 #if defined(OS_ANDROID) | 18 #if defined(OS_ANDROID) |
19 #include "base/sequenced_task_runner.h" | 19 #include "base/sequenced_task_runner.h" |
20 #include "base/threading/sequenced_worker_pool.h" | 20 #include "base/threading/sequenced_worker_pool.h" |
21 #include "components/gcm_driver/gcm_driver_android.h" | 21 #include "components/gcm_driver/gcm_driver_android.h" |
22 #else | 22 #else |
23 #include "base/bind.h" | 23 #include "base/bind.h" |
24 #include "base/files/file_path.h" | 24 #include "base/files/file_path.h" |
25 #include "base/memory/weak_ptr.h" | 25 #include "base/memory/weak_ptr.h" |
26 #include "components/gcm_driver/gcm_account_tracker.h" | 26 #include "components/gcm_driver/gcm_account_tracker.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 driver_.reset(driver); | 176 driver_.reset(driver); |
177 #if !defined(OS_ANDROID) | 177 #if !defined(OS_ANDROID) |
178 if (identity_observer_) { | 178 if (identity_observer_) { |
179 identity_observer_.reset(new IdentityObserver( | 179 identity_observer_.reset(new IdentityObserver( |
180 profile_identity_provider_.get(), request_context_, driver)); | 180 profile_identity_provider_.get(), request_context_, driver)); |
181 } | 181 } |
182 #endif // !defined(OS_ANDROID) | 182 #endif // !defined(OS_ANDROID) |
183 } | 183 } |
184 | 184 |
185 } // namespace gcm | 185 } // namespace gcm |
OLD | NEW |