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

Unified Diff: chrome/browser/prefs/chrome_pref_service_factory.cc

Issue 220203011: Changes requested by gab for previously committed CLs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't commit if we didn't make any changes. Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/prefs/pref_hash_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/chrome_pref_service_factory.cc
diff --git a/chrome/browser/prefs/chrome_pref_service_factory.cc b/chrome/browser/prefs/chrome_pref_service_factory.cc
index 97313af949c6e5128f12ef5f5348c1809dd7fd7f..195bc431d5190709baf05df7c9844ca56a7e7f6c 100644
--- a/chrome/browser/prefs/chrome_pref_service_factory.cc
+++ b/chrome/browser/prefs/chrome_pref_service_factory.cc
@@ -357,8 +357,6 @@ void PrepareFactory(
// path matches |ignored_profile_path|.
void UpdateAllPrefHashStoresIfRequired(
const base::FilePath& ignored_profile_path) {
- if (GetSettingsEnforcementGroup() >= GROUP_ENFORCE_ALWAYS)
- return;
const ProfileInfoCache& profile_info_cache =
g_browser_process->profile_manager()->GetProfileInfoCache();
const size_t n_profiles = profile_info_cache.GetNumberOfProfiles();
@@ -455,6 +453,9 @@ void SchedulePrefHashStoresUpdateCheck(
return;
}
+ if (GetSettingsEnforcementGroup() >= GROUP_ENFORCE_ALWAYS)
+ return;
+
const int kDefaultPrefHashStoresUpdateCheckDelaySeconds = 55;
BrowserThread::PostDelayedTask(
BrowserThread::UI,
« no previous file with comments | « no previous file | chrome/browser/prefs/pref_hash_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698