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 "components/signin/core/browser/account_reconcilor.h" | 5 #include "components/signin/core/browser/account_reconcilor.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/json/json_reader.h" | 12 #include "base/json/json_reader.h" |
11 #include "base/location.h" | 13 #include "base/location.h" |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
13 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
14 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
15 #include "base/thread_task_runner_handle.h" | 17 #include "base/thread_task_runner_handle.h" |
16 #include "base/time/time.h" | 18 #include "base/time/time.h" |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 << "Account added: " << account_id << ", " | 492 << "Account added: " << account_id << ", " |
491 << "Error was " << error.ToString(); | 493 << "Error was " << error.ToString(); |
492 // Always listens to GaiaCookieManagerService. Only proceed if reconciling. | 494 // Always listens to GaiaCookieManagerService. Only proceed if reconciling. |
493 if (is_reconcile_started_ && MarkAccountAsAddedToCookie(account_id)) { | 495 if (is_reconcile_started_ && MarkAccountAsAddedToCookie(account_id)) { |
494 if (error.state() != GoogleServiceAuthError::State::NONE) | 496 if (error.state() != GoogleServiceAuthError::State::NONE) |
495 error_during_last_reconcile_ = true; | 497 error_during_last_reconcile_ = true; |
496 CalculateIfReconcileIsDone(); | 498 CalculateIfReconcileIsDone(); |
497 ScheduleStartReconcileIfChromeAccountsChanged(); | 499 ScheduleStartReconcileIfChromeAccountsChanged(); |
498 } | 500 } |
499 } | 501 } |
OLD | NEW |