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

Side by Side Diff: components/signin/core/browser/signin_tracker.cc

Issue 1997453003: Fix "unused variable" warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move changes in and out to fix compile Created 4 years, 7 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
« no previous file with comments | « components/signin/core/browser/signin_tracker.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/signin/core/browser/signin_tracker.h" 5 #include "components/signin/core/browser/signin_tracker.h"
6 6
7 #include "components/signin/core/browser/gaia_cookie_manager_service.h" 7 #include "components/signin/core/browser/gaia_cookie_manager_service.h"
8 #include "components/signin/core/browser/profile_oauth2_token_service.h" 8 #include "components/signin/core/browser/profile_oauth2_token_service.h"
9 #include "components/signin/core/browser/signin_client.h"
10 #include "google_apis/gaia/gaia_constants.h" 9 #include "google_apis/gaia/gaia_constants.h"
11 10
12 SigninTracker::SigninTracker(ProfileOAuth2TokenService* token_service, 11 SigninTracker::SigninTracker(ProfileOAuth2TokenService* token_service,
13 SigninManagerBase* signin_manager, 12 SigninManagerBase* signin_manager,
14 GaiaCookieManagerService* cookie_manager_service, 13 GaiaCookieManagerService* cookie_manager_service,
15 SigninClient* client,
16 Observer* observer) 14 Observer* observer)
17 : token_service_(token_service), 15 : token_service_(token_service),
18 signin_manager_(signin_manager), 16 signin_manager_(signin_manager),
19 cookie_manager_service_(cookie_manager_service), 17 cookie_manager_service_(cookie_manager_service),
20 client_(client),
21 observer_(observer) { 18 observer_(observer) {
22 Initialize(); 19 Initialize();
23 } 20 }
24 21
25 SigninTracker::~SigninTracker() { 22 SigninTracker::~SigninTracker() {
26 signin_manager_->RemoveObserver(this); 23 signin_manager_->RemoveObserver(this);
27 token_service_->RemoveObserver(this); 24 token_service_->RemoveObserver(this);
28 cookie_manager_service_->RemoveObserver(this); 25 cookie_manager_service_->RemoveObserver(this);
29 } 26 }
30 27
(...skipping 17 matching lines...) Expand all
48 45
49 void SigninTracker::OnRefreshTokenRevoked(const std::string& account_id) { 46 void SigninTracker::OnRefreshTokenRevoked(const std::string& account_id) {
50 NOTREACHED(); 47 NOTREACHED();
51 } 48 }
52 49
53 void SigninTracker::OnAddAccountToCookieCompleted( 50 void SigninTracker::OnAddAccountToCookieCompleted(
54 const std::string& account_id, 51 const std::string& account_id,
55 const GoogleServiceAuthError& error) { 52 const GoogleServiceAuthError& error) {
56 observer_->AccountAddedToCookie(error); 53 observer_->AccountAddedToCookie(error);
57 } 54 }
OLDNEW
« no previous file with comments | « components/signin/core/browser/signin_tracker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698