| 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 "chrome/browser/invalidation/invalidation_service_factory.h" | 5 #include "chrome/browser/invalidation/invalidation_service_factory.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/prefs/pref_registry.h" | 8 #include "base/prefs/pref_registry.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/invalidation/fake_invalidation_service.h" | 10 #include "chrome/browser/invalidation/fake_invalidation_service.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "components/signin/core/browser/signin_manager.h" | 28 #include "components/signin/core/browser/signin_manager.h" |
| 29 #include "net/url_request/url_request_context_getter.h" | 29 #include "net/url_request/url_request_context_getter.h" |
| 30 #include "sync/notifier/invalidation_state_tracker.h" | 30 #include "sync/notifier/invalidation_state_tracker.h" |
| 31 | 31 |
| 32 #if defined(OS_ANDROID) | 32 #if defined(OS_ANDROID) |
| 33 #include "chrome/browser/invalidation/invalidation_controller_android.h" | 33 #include "chrome/browser/invalidation/invalidation_controller_android.h" |
| 34 #endif // defined(OS_ANDROID) | 34 #endif // defined(OS_ANDROID) |
| 35 | 35 |
| 36 #if defined(OS_CHROMEOS) | 36 #if defined(OS_CHROMEOS) |
| 37 #include "base/files/file_path.h" | 37 #include "base/files/file_path.h" |
| 38 #include "chrome/browser/chromeos/login/user_manager.h" | 38 #include "chrome/browser/chromeos/login/users/user_manager.h" |
| 39 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 39 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
| 40 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 40 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 41 #include "chrome/browser/chromeos/settings/device_identity_provider.h" | 41 #include "chrome/browser/chromeos/settings/device_identity_provider.h" |
| 42 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h
" | 42 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h
" |
| 43 #endif | 43 #endif |
| 44 | 44 |
| 45 namespace invalidation { | 45 namespace invalidation { |
| 46 | 46 |
| 47 // static | 47 // static |
| 48 InvalidationService* InvalidationServiceFactory::GetForProfile( | 48 InvalidationService* InvalidationServiceFactory::GetForProfile( |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 void InvalidationServiceFactory::RegisterProfilePrefs( | 136 void InvalidationServiceFactory::RegisterProfilePrefs( |
| 137 user_prefs::PrefRegistrySyncable* registry) { | 137 user_prefs::PrefRegistrySyncable* registry) { |
| 138 registry->RegisterBooleanPref( | 138 registry->RegisterBooleanPref( |
| 139 prefs::kInvalidationServiceUseGCMChannel, | 139 prefs::kInvalidationServiceUseGCMChannel, |
| 140 false, | 140 false, |
| 141 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 141 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 142 InvalidatorStorage::RegisterProfilePrefs(registry); | 142 InvalidatorStorage::RegisterProfilePrefs(registry); |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace invalidation | 145 } // namespace invalidation |
| OLD | NEW |