Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: components/gcm_driver/gcm_account_tracker.cc

Issue 1293393003: Componentize gcm_account_tracker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "components/gcm_driver/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" 10 #include "base/bind.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/thread_task_runner_handle.h" 13 #include "base/thread_task_runner_handle.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "components/gcm_driver/gcm_driver.h" 15 #include "components/gcm_driver/gcm_driver.h"
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 iter->second.state = ACCOUNT_REMOVED; 367 iter->second.state = ACCOUNT_REMOVED;
368 ReportTokens(); 368 ReportTokens();
369 } 369 }
370 370
371 OAuth2TokenService* GCMAccountTracker::GetTokenService() { 371 OAuth2TokenService* GCMAccountTracker::GetTokenService() {
372 DCHECK(account_tracker_->identity_provider()); 372 DCHECK(account_tracker_->identity_provider());
373 return account_tracker_->identity_provider()->GetTokenService(); 373 return account_tracker_->identity_provider()->GetTokenService();
374 } 374 }
375 375
376 } // namespace gcm 376 } // namespace gcm
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_account_tracker.h ('k') | components/gcm_driver/gcm_account_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698