| 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/services/gcm/gcm_profile_service.h" | 5 #include "chrome/browser/services/gcm/gcm_profile_service.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/signin/profile_identity_provider.h" | 12 #include "chrome/browser/signin/profile_identity_provider.h" |
| 13 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 13 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
| 14 #include "chrome/browser/signin/signin_manager_factory.h" | 14 #include "chrome/browser/signin/signin_manager_factory.h" |
| 15 #include "chrome/common/chrome_constants.h" | 15 #include "chrome/common/chrome_constants.h" |
| 16 #include "chrome/common/chrome_version_info.h" | 16 #include "chrome/common/chrome_version_info.h" |
| 17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
| 18 #include "components/pref_registry/pref_registry_syncable.h" |
| 18 #include "components/signin/core/browser/signin_manager.h" | 19 #include "components/signin/core/browser/signin_manager.h" |
| 19 #include "components/user_prefs/pref_registry_syncable.h" | |
| 20 #include "google_apis/gaia/identity_provider.h" | 20 #include "google_apis/gaia/identity_provider.h" |
| 21 #include "net/url_request/url_request_context_getter.h" | 21 #include "net/url_request/url_request_context_getter.h" |
| 22 | 22 |
| 23 #if !defined(OS_ANDROID) | 23 #if !defined(OS_ANDROID) |
| 24 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" | 24 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" |
| 25 #endif | 25 #endif |
| 26 | 26 |
| 27 namespace gcm { | 27 namespace gcm { |
| 28 | 28 |
| 29 // static | 29 // static |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 base::FilePath GCMProfileService::GetStorePath() const { | 106 base::FilePath GCMProfileService::GetStorePath() const { |
| 107 return profile_->GetPath().Append(chrome::kGCMStoreDirname); | 107 return profile_->GetPath().Append(chrome::kGCMStoreDirname); |
| 108 } | 108 } |
| 109 | 109 |
| 110 scoped_refptr<net::URLRequestContextGetter> | 110 scoped_refptr<net::URLRequestContextGetter> |
| 111 GCMProfileService::GetURLRequestContextGetter() const { | 111 GCMProfileService::GetURLRequestContextGetter() const { |
| 112 return profile_->GetRequestContext(); | 112 return profile_->GetRequestContext(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 } // namespace gcm | 115 } // namespace gcm |
| OLD | NEW |