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

Side by Side Diff: chrome/browser/prefs/chrome_pref_service_factory.h

Issue 2705113005: Update AutoImport to import nothing by default (in absence of policy and master_prefs). (Closed)
Patch Set: Created 3 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 #ifndef CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 5 #ifndef CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
6 #define CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 6 #define CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 bool async); 81 bool async);
82 82
83 // Call before startup tasks kick in to ignore the presence of a domain when 83 // Call before startup tasks kick in to ignore the presence of a domain when
84 // determining the active SettingsEnforcement group. For testing only. 84 // determining the active SettingsEnforcement group. For testing only.
85 void DisableDomainCheckForTesting(); 85 void DisableDomainCheckForTesting();
86 86
87 // Initializes the preferences for the profile at |profile_path| with the 87 // Initializes the preferences for the profile at |profile_path| with the
88 // preference values in |master_prefs|. Returns true on success. 88 // preference values in |master_prefs|. Returns true on success.
89 bool InitializePrefsFromMasterPrefs( 89 bool InitializePrefsFromMasterPrefs(
90 const base::FilePath& profile_path, 90 const base::FilePath& profile_path,
91 const base::DictionaryValue& master_prefs); 91 std::unique_ptr<base::DictionaryValue> master_prefs);
92 92
93 // Retrieves the time of the last preference reset event, if any, for the 93 // Retrieves the time of the last preference reset event, if any, for the
94 // provided profile. If no reset has occurred, returns a null |Time|. 94 // provided profile. If no reset has occurred, returns a null |Time|.
95 base::Time GetResetTime(Profile* profile); 95 base::Time GetResetTime(Profile* profile);
96 96
97 // Clears the time of the last preference reset event, if any, for the provided 97 // Clears the time of the last preference reset event, if any, for the provided
98 // profile. 98 // profile.
99 void ClearResetTime(Profile* profile); 99 void ClearResetTime(Profile* profile);
100 100
101 // Register user prefs used by chrome preference system. 101 // Register user prefs used by chrome preference system.
102 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 102 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
103 103
104 } // namespace chrome_prefs 104 } // namespace chrome_prefs
105 105
106 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 106 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698