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

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

Issue 2595703002: Expand net::CookieStore::ChangeCause::EXPLICIT for debugging. (Closed)
Patch Set: better names for enum values Created 3 years, 12 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 | « chrome/browser/extensions/api/cookies/cookies_api.cc ('k') | net/cookies/cookie_monster.cc » ('j') | 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/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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/cookies/cookies_api.cc ('k') | net/cookies/cookie_monster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698