| 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 "chrome/browser/services/gcm/gcm_account_tracker.h" | 5 #include "chrome/browser/services/gcm/gcm_account_tracker.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" |
| 11 #include "base/message_loop/message_loop.h" |
| 10 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 11 #include "components/gcm_driver/gcm_driver.h" | 13 #include "components/gcm_driver/gcm_driver.h" |
| 12 #include "google_apis/gaia/google_service_auth_error.h" | 14 #include "google_apis/gaia/google_service_auth_error.h" |
| 13 #include "net/base/ip_endpoint.h" | 15 #include "net/base/ip_endpoint.h" |
| 14 | 16 |
| 15 namespace gcm { | 17 namespace gcm { |
| 16 | 18 |
| 17 namespace { | 19 namespace { |
| 18 | 20 |
| 19 // Scopes needed by the OAuth2 access tokens. | 21 // Scopes needed by the OAuth2 access tokens. |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 iter->second.state = ACCOUNT_REMOVED; | 366 iter->second.state = ACCOUNT_REMOVED; |
| 365 ReportTokens(); | 367 ReportTokens(); |
| 366 } | 368 } |
| 367 | 369 |
| 368 OAuth2TokenService* GCMAccountTracker::GetTokenService() { | 370 OAuth2TokenService* GCMAccountTracker::GetTokenService() { |
| 369 DCHECK(account_tracker_->identity_provider()); | 371 DCHECK(account_tracker_->identity_provider()); |
| 370 return account_tracker_->identity_provider()->GetTokenService(); | 372 return account_tracker_->identity_provider()->GetTokenService(); |
| 371 } | 373 } |
| 372 | 374 |
| 373 } // namespace gcm | 375 } // namespace gcm |
| OLD | NEW |