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

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

Issue 1651203002: Update components for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/prefs/scoped_user_pref_update.h"
13 #include "base/profiler/scoped_tracker.h" 12 #include "base/profiler/scoped_tracker.h"
14 #include "base/strings/string_split.h" 13 #include "base/strings/string_split.h"
15 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
16 #include "base/trace_event/trace_event.h" 15 #include "base/trace_event/trace_event.h"
17 #include "build/build_config.h" 16 #include "build/build_config.h"
18 #include "components/pref_registry/pref_registry_syncable.h" 17 #include "components/pref_registry/pref_registry_syncable.h"
18 #include "components/prefs/scoped_user_pref_update.h"
19 #include "components/signin/core/browser/signin_client.h" 19 #include "components/signin/core/browser/signin_client.h"
20 #include "components/signin/core/browser/signin_manager.h" 20 #include "components/signin/core/browser/signin_manager.h"
21 #include "components/signin/core/common/signin_pref_names.h" 21 #include "components/signin/core/common/signin_pref_names.h"
22 22
23 namespace { 23 namespace {
24 24
25 const char kAccountKeyPath[] = "account_id"; 25 const char kAccountKeyPath[] = "account_id";
26 const char kAccountEmailPath[] = "email"; 26 const char kAccountEmailPath[] = "email";
27 const char kAccountGaiaPath[] = "gaia"; 27 const char kAccountGaiaPath[] = "gaia";
28 const char kAccountHostedDomainPath[] = "hd"; 28 const char kAccountHostedDomainPath[] = "hd";
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 NotifyAccountUpdated(state); 501 NotifyAccountUpdated(state);
502 } 502 }
503 SaveToPrefs(state); 503 SaveToPrefs(state);
504 } 504 }
505 return info.account_id; 505 return info.account_id;
506 } 506 }
507 507
508 void AccountTrackerService::RemoveAccount(const std::string& account_id) { 508 void AccountTrackerService::RemoveAccount(const std::string& account_id) {
509 StopTrackingAccount(account_id); 509 StopTrackingAccount(account_id);
510 } 510 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698