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

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

Issue 2908263003: Replace deprecated base::NonThreadSafe in components/signin in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 6 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
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/account_tracker_service.h" 5 #include "components/signin/core/browser/account_tracker_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // This must be a string which can never be a valid domain. 54 // This must be a string which can never be a valid domain.
55 const char AccountTrackerService::kNoHostedDomainFound[] = "NO_HOSTED_DOMAIN"; 55 const char AccountTrackerService::kNoHostedDomainFound[] = "NO_HOSTED_DOMAIN";
56 56
57 // This must be a string which can never be a valid picture URL. 57 // This must be a string which can never be a valid picture URL.
58 const char AccountTrackerService::kNoPictureURLFound[] = "NO_PICTURE_URL"; 58 const char AccountTrackerService::kNoPictureURLFound[] = "NO_PICTURE_URL";
59 59
60 AccountTrackerService::AccountTrackerService() : signin_client_(nullptr) {} 60 AccountTrackerService::AccountTrackerService() : signin_client_(nullptr) {}
61 61
62 AccountTrackerService::~AccountTrackerService() { 62 AccountTrackerService::~AccountTrackerService() {
63 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
63 } 64 }
64 65
65 // static 66 // static
66 void AccountTrackerService::RegisterPrefs( 67 void AccountTrackerService::RegisterPrefs(
67 user_prefs::PrefRegistrySyncable* registry) { 68 user_prefs::PrefRegistrySyncable* registry) {
68 registry->RegisterListPref(AccountTrackerService::kAccountInfoPref); 69 registry->RegisterListPref(AccountTrackerService::kAccountInfoPref);
69 registry->RegisterIntegerPref(prefs::kAccountIdMigrationState, 70 registry->RegisterIntegerPref(prefs::kAccountIdMigrationState,
70 AccountTrackerService::MIGRATION_NOT_STARTED); 71 AccountTrackerService::MIGRATION_NOT_STARTED);
71 } 72 }
72 73
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 NotifyAccountUpdated(state); 503 NotifyAccountUpdated(state);
503 504
504 SaveToPrefs(state); 505 SaveToPrefs(state);
505 } 506 }
506 return info.account_id; 507 return info.account_id;
507 } 508 }
508 509
509 void AccountTrackerService::RemoveAccount(const std::string& account_id) { 510 void AccountTrackerService::RemoveAccount(const std::string& account_id) {
510 StopTrackingAccount(account_id); 511 StopTrackingAccount(account_id);
511 } 512 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698