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

Side by Side Diff: chrome/browser/profiles/profile_impl.cc

Issue 12088040: Add a SigninAllowed policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extract managed user specific stuff into another changelist. Created 7 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 | Annotate | Revision Log
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/profiles/profile_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 int ProfileImpl::create_readme_delay_ms = 60000; 265 int ProfileImpl::create_readme_delay_ms = 60000;
266 266
267 // static 267 // static
268 const char* const ProfileImpl::kPrefExitTypeNormal = "Normal"; 268 const char* const ProfileImpl::kPrefExitTypeNormal = "Normal";
269 269
270 // static 270 // static
271 void ProfileImpl::RegisterUserPrefs(PrefServiceSyncable* prefs) { 271 void ProfileImpl::RegisterUserPrefs(PrefServiceSyncable* prefs) {
272 prefs->RegisterBooleanPref(prefs::kSavingBrowserHistoryDisabled, 272 prefs->RegisterBooleanPref(prefs::kSavingBrowserHistoryDisabled,
273 false, 273 false,
274 PrefServiceSyncable::UNSYNCABLE_PREF); 274 PrefServiceSyncable::UNSYNCABLE_PREF);
275 prefs->RegisterBooleanPref(prefs::kSigninAllowed,
276 true,
277 PrefServiceSyncable::UNSYNCABLE_PREF);
275 prefs->RegisterBooleanPref(prefs::kForceSafeSearch, 278 prefs->RegisterBooleanPref(prefs::kForceSafeSearch,
276 false, 279 false,
277 PrefServiceSyncable::UNSYNCABLE_PREF); 280 PrefServiceSyncable::UNSYNCABLE_PREF);
278 prefs->RegisterIntegerPref(prefs::kProfileAvatarIndex, 281 prefs->RegisterIntegerPref(prefs::kProfileAvatarIndex,
279 -1, 282 -1,
280 PrefServiceSyncable::SYNCABLE_PREF); 283 PrefServiceSyncable::SYNCABLE_PREF);
281 prefs->RegisterStringPref(prefs::kProfileName, 284 prefs->RegisterStringPref(prefs::kProfileName,
282 "", 285 "",
283 PrefServiceSyncable::SYNCABLE_PREF); 286 PrefServiceSyncable::SYNCABLE_PREF);
284 prefs->RegisterBooleanPref(prefs::kProfileIsManaged, 287 prefs->RegisterBooleanPref(prefs::kProfileIsManaged,
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 FilePath* cache_path, 1152 FilePath* cache_path,
1150 int* max_size) { 1153 int* max_size) {
1151 DCHECK(cache_path); 1154 DCHECK(cache_path);
1152 DCHECK(max_size); 1155 DCHECK(max_size);
1153 FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); 1156 FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir));
1154 if (!path.empty()) 1157 if (!path.empty())
1155 *cache_path = path; 1158 *cache_path = path;
1156 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1159 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1157 prefs_->GetInteger(prefs::kDiskCacheSize); 1160 prefs_->GetInteger(prefs::kDiskCacheSize);
1158 } 1161 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698