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/gaia_cookie_manager_service.h" | 5 #include "components/signin/core/browser/gaia_cookie_manager_service.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 // that any changes to the gaia cookie outside of this class, while requests | 499 // that any changes to the gaia cookie outside of this class, while requests |
500 // are pending, will be lost. However, trying to process these changes could | 500 // are pending, will be lost. However, trying to process these changes could |
501 // cause an endless loop (see crbug.com/516070). | 501 // cause an endless loop (see crbug.com/516070). |
502 if (requests_.empty()) { | 502 if (requests_.empty()) { |
503 // Build gaia "source" based on cause to help track down channel id issues. | 503 // Build gaia "source" based on cause to help track down channel id issues. |
504 std::string source(GetDefaultSourceForRequest()); | 504 std::string source(GetDefaultSourceForRequest()); |
505 switch (cause) { | 505 switch (cause) { |
506 case net::CookieStore::ChangeCause::INSERTED: | 506 case net::CookieStore::ChangeCause::INSERTED: |
507 source += "INSERTED"; | 507 source += "INSERTED"; |
508 break; | 508 break; |
509 case net::CookieStore::ChangeCause::EXPLICIT: | 509 case net::CookieStore::ChangeCause::EXPLICIT_DELETE: |
510 source += "EXPLICIT"; | 510 source += "EXPLICIT_DELETE"; |
| 511 break; |
| 512 case net::CookieStore::ChangeCause::EXPLICIT_DUPLICATE_IN_BACKING_STORE: |
| 513 source += "EXPLICIT_DUPLICATE_IN_BACKING_STORE"; |
| 514 break; |
| 515 case net::CookieStore::ChangeCause::EXPLICIT_DONT_RECORD: |
| 516 source += "EXPLICIT_DONT_RECORD"; |
| 517 break; |
| 518 case net::CookieStore::ChangeCause::EXPLICIT_LAST_ENTRY: |
| 519 source += "EXPLICIT_LAST_ENTRY"; |
511 break; | 520 break; |
512 case net::CookieStore::ChangeCause::UNKNOWN_DELETION: | 521 case net::CookieStore::ChangeCause::UNKNOWN_DELETION: |
513 source += "UNKNOWN_DELETION"; | 522 source += "UNKNOWN_DELETION"; |
514 break; | 523 break; |
515 case net::CookieStore::ChangeCause::OVERWRITE: | 524 case net::CookieStore::ChangeCause::OVERWRITE: |
516 source += "OVERWRITE"; | 525 source += "OVERWRITE"; |
517 break; | 526 break; |
518 case net::CookieStore::ChangeCause::EXPIRED: | 527 case net::CookieStore::ChangeCause::EXPIRED: |
519 source += "EXPIRED"; | 528 source += "EXPIRED"; |
520 break; | 529 break; |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 break; | 803 break; |
795 case GaiaCookieRequestType::LIST_ACCOUNTS: | 804 case GaiaCookieRequestType::LIST_ACCOUNTS: |
796 uber_token_fetcher_.reset(); | 805 uber_token_fetcher_.reset(); |
797 signin_client_->DelayNetworkCall( | 806 signin_client_->DelayNetworkCall( |
798 base::Bind(&GaiaCookieManagerService::StartFetchingListAccounts, | 807 base::Bind(&GaiaCookieManagerService::StartFetchingListAccounts, |
799 base::Unretained(this))); | 808 base::Unretained(this))); |
800 break; | 809 break; |
801 } | 810 } |
802 } | 811 } |
803 } | 812 } |
OLD | NEW |