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

Side by Side Diff: chrome/browser/supervised_user/child_accounts/child_account_service.cc

Issue 2345843003: [Sync] Merge //components/browser_sync into one directory. (Closed)
Patch Set: Address comment + rebase. Created 4 years, 3 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 "chrome/browser/supervised_user/child_accounts/child_account_service.h" 5 #include "chrome/browser/supervised_user/child_accounts/child_account_service.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/feature_list.h" 9 #include "base/feature_list.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/metrics/field_trial.h" 11 #include "base/metrics/field_trial.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/signin/account_tracker_service_factory.h" 15 #include "chrome/browser/signin/account_tracker_service_factory.h"
16 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 16 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
17 #include "chrome/browser/signin/signin_manager_factory.h" 17 #include "chrome/browser/signin/signin_manager_factory.h"
18 #include "chrome/browser/supervised_user/child_accounts/permission_request_creat or_apiary.h" 18 #include "chrome/browser/supervised_user/child_accounts/permission_request_creat or_apiary.h"
19 #include "chrome/browser/supervised_user/experimental/safe_search_url_reporter.h " 19 #include "chrome/browser/supervised_user/experimental/safe_search_url_reporter.h "
20 #include "chrome/browser/supervised_user/supervised_user_constants.h" 20 #include "chrome/browser/supervised_user/supervised_user_constants.h"
21 #include "chrome/browser/supervised_user/supervised_user_service.h" 21 #include "chrome/browser/supervised_user/supervised_user_service.h"
22 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" 22 #include "chrome/browser/supervised_user/supervised_user_service_factory.h"
23 #include "chrome/browser/supervised_user/supervised_user_settings_service.h" 23 #include "chrome/browser/supervised_user/supervised_user_settings_service.h"
24 #include "chrome/browser/supervised_user/supervised_user_settings_service_factor y.h" 24 #include "chrome/browser/supervised_user/supervised_user_settings_service_factor y.h"
25 #include "chrome/browser/sync/profile_sync_service_factory.h" 25 #include "chrome/browser/sync/profile_sync_service_factory.h"
26 #include "chrome/common/chrome_features.h" 26 #include "chrome/common/chrome_features.h"
27 #include "chrome/common/chrome_switches.h" 27 #include "chrome/common/chrome_switches.h"
28 #include "chrome/common/pref_names.h" 28 #include "chrome/common/pref_names.h"
29 #include "components/browser_sync/browser/profile_sync_service.h" 29 #include "components/browser_sync/profile_sync_service.h"
30 #include "components/pref_registry/pref_registry_syncable.h" 30 #include "components/pref_registry/pref_registry_syncable.h"
31 #include "components/prefs/pref_service.h" 31 #include "components/prefs/pref_service.h"
32 #include "components/signin/core/browser/profile_oauth2_token_service.h" 32 #include "components/signin/core/browser/profile_oauth2_token_service.h"
33 #include "components/signin/core/browser/signin_manager.h" 33 #include "components/signin/core/browser/signin_manager.h"
34 #include "components/signin/core/common/signin_pref_names.h" 34 #include "components/signin/core/common/signin_pref_names.h"
35 35
36 #if defined(OS_CHROMEOS) 36 #if defined(OS_CHROMEOS)
37 #include "chrome/browser/chromeos/profiles/profile_helper.h" 37 #include "chrome/browser/chromeos/profiles/profile_helper.h"
38 #include "components/user_manager/user_manager.h" 38 #include "components/user_manager/user_manager.h"
39 #endif 39 #endif
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 } 339 }
340 340
341 void ChildAccountService::ClearSecondCustodianPrefs() { 341 void ChildAccountService::ClearSecondCustodianPrefs() {
342 profile_->GetPrefs()->ClearPref(prefs::kSupervisedUserSecondCustodianName); 342 profile_->GetPrefs()->ClearPref(prefs::kSupervisedUserSecondCustodianName);
343 profile_->GetPrefs()->ClearPref(prefs::kSupervisedUserSecondCustodianEmail); 343 profile_->GetPrefs()->ClearPref(prefs::kSupervisedUserSecondCustodianEmail);
344 profile_->GetPrefs()->ClearPref( 344 profile_->GetPrefs()->ClearPref(
345 prefs::kSupervisedUserSecondCustodianProfileURL); 345 prefs::kSupervisedUserSecondCustodianProfileURL);
346 profile_->GetPrefs()->ClearPref( 346 profile_->GetPrefs()->ClearPref(
347 prefs::kSupervisedUserSecondCustodianProfileImageURL); 347 prefs::kSupervisedUserSecondCustodianProfileImageURL);
348 } 348 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_ui_util.cc ('k') | chrome/browser/supervised_user/legacy/permission_request_creator_sync.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698