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

Side by Side Diff: chrome/browser/policy/cloud/user_policy_signin_service_factory.cc

Issue 1658793002: Update chrome 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/policy/cloud/user_policy_signin_service_factory.h" 5 #include "chrome/browser/policy/cloud/user_policy_signin_service_factory.h"
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/prefs/pref_service.h"
9 #include "build/build_config.h" 8 #include "build/build_config.h"
10 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" 10 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h"
12 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 12 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
14 #include "chrome/browser/signin/signin_manager_factory.h" 13 #include "chrome/browser/signin/signin_manager_factory.h"
15 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
16 #include "components/keyed_service/content/browser_context_dependency_manager.h" 15 #include "components/keyed_service/content/browser_context_dependency_manager.h"
17 #include "components/policy/core/browser/browser_policy_connector.h" 16 #include "components/policy/core/browser/browser_policy_connector.h"
18 #include "components/pref_registry/pref_registry_syncable.h" 17 #include "components/pref_registry/pref_registry_syncable.h"
18 #include "components/prefs/pref_service.h"
19 #include "net/url_request/url_request_context_getter.h" 19 #include "net/url_request/url_request_context_getter.h"
20 20
21 #if defined(OS_ANDROID) || defined(OS_IOS) 21 #if defined(OS_ANDROID) || defined(OS_IOS)
22 #include "chrome/browser/policy/cloud/user_policy_signin_service_mobile.h" 22 #include "chrome/browser/policy/cloud/user_policy_signin_service_mobile.h"
23 #else 23 #else
24 #include "chrome/browser/policy/cloud/user_policy_signin_service.h" 24 #include "chrome/browser/policy/cloud/user_policy_signin_service.h"
25 #endif 25 #endif
26 26
27 namespace policy { 27 namespace policy {
28 28
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 97 }
98 98
99 void UserPolicySigninServiceFactory::RegisterProfilePrefs( 99 void UserPolicySigninServiceFactory::RegisterProfilePrefs(
100 user_prefs::PrefRegistrySyncable* user_prefs) { 100 user_prefs::PrefRegistrySyncable* user_prefs) {
101 #if defined(OS_ANDROID) || defined(OS_IOS) 101 #if defined(OS_ANDROID) || defined(OS_IOS)
102 user_prefs->RegisterInt64Pref(prefs::kLastPolicyCheckTime, 0); 102 user_prefs->RegisterInt64Pref(prefs::kLastPolicyCheckTime, 0);
103 #endif 103 #endif
104 } 104 }
105 105
106 } // namespace policy 106 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698