OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/ios/browser/profile_oauth2_token_service_ios_delegat
e.h" | 5 #include "components/signin/ios/browser/profile_oauth2_token_service_ios_delegat
e.h" |
6 | 6 |
7 #include <Foundation/Foundation.h> | 7 #include <Foundation/Foundation.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/macros.h" |
14 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
15 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
16 #include "base/prefs/pref_service.h" | 17 #include "base/prefs/pref_service.h" |
17 #include "base/prefs/scoped_user_pref_update.h" | 18 #include "base/prefs/scoped_user_pref_update.h" |
18 #include "base/stl_util.h" | 19 #include "base/stl_util.h" |
19 #include "base/strings/sys_string_conversions.h" | 20 #include "base/strings/sys_string_conversions.h" |
20 #include "base/values.h" | 21 #include "base/values.h" |
21 #include "components/signin/core/browser/account_info.h" | 22 #include "components/signin/core/browser/account_info.h" |
22 #include "components/signin/core/browser/account_tracker_service.h" | 23 #include "components/signin/core/browser/account_tracker_service.h" |
23 #include "components/signin/core/browser/signin_client.h" | 24 #include "components/signin/core/browser/signin_client.h" |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 accounts_.erase(account_id); | 384 accounts_.erase(account_id); |
384 FireRefreshTokenRevoked(account_id); | 385 FireRefreshTokenRevoked(account_id); |
385 } | 386 } |
386 } | 387 } |
387 | 388 |
388 void ProfileOAuth2TokenServiceIOSDelegate::ClearExcludedSecondaryAccounts() { | 389 void ProfileOAuth2TokenServiceIOSDelegate::ClearExcludedSecondaryAccounts() { |
389 client_->GetPrefs()->ClearPref( | 390 client_->GetPrefs()->ClearPref( |
390 prefs::kTokenServiceExcludeAllSecondaryAccounts); | 391 prefs::kTokenServiceExcludeAllSecondaryAccounts); |
391 client_->GetPrefs()->ClearPref(prefs::kTokenServiceExcludedSecondaryAccounts); | 392 client_->GetPrefs()->ClearPref(prefs::kTokenServiceExcludedSecondaryAccounts); |
392 } | 393 } |
OLD | NEW |