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

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: Address nits and rebase to ToT. Created 7 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 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 const char* const ProfileImpl::kPrefExitTypeNormal = "Normal"; 272 const char* const ProfileImpl::kPrefExitTypeNormal = "Normal";
273 273
274 // static 274 // static
275 void ProfileImpl::RegisterUserPrefs(PrefRegistrySyncable* registry) { 275 void ProfileImpl::RegisterUserPrefs(PrefRegistrySyncable* registry) {
276 registry->RegisterBooleanPref(prefs::kSavingBrowserHistoryDisabled, 276 registry->RegisterBooleanPref(prefs::kSavingBrowserHistoryDisabled,
277 false, 277 false,
278 PrefRegistrySyncable::UNSYNCABLE_PREF); 278 PrefRegistrySyncable::UNSYNCABLE_PREF);
279 registry->RegisterBooleanPref(prefs::kAllowDeletingBrowserHistory, 279 registry->RegisterBooleanPref(prefs::kAllowDeletingBrowserHistory,
280 true, 280 true,
281 PrefRegistrySyncable::UNSYNCABLE_PREF); 281 PrefRegistrySyncable::UNSYNCABLE_PREF);
282 registry->RegisterBooleanPref(prefs::kSigninAllowed,
283 true,
284 PrefRegistrySyncable::UNSYNCABLE_PREF);
282 registry->RegisterBooleanPref(prefs::kForceSafeSearch, 285 registry->RegisterBooleanPref(prefs::kForceSafeSearch,
283 false, 286 false,
284 PrefRegistrySyncable::UNSYNCABLE_PREF); 287 PrefRegistrySyncable::UNSYNCABLE_PREF);
285 registry->RegisterIntegerPref(prefs::kProfileAvatarIndex, 288 registry->RegisterIntegerPref(prefs::kProfileAvatarIndex,
286 -1, 289 -1,
287 PrefRegistrySyncable::SYNCABLE_PREF); 290 PrefRegistrySyncable::SYNCABLE_PREF);
288 registry->RegisterStringPref(prefs::kProfileName, 291 registry->RegisterStringPref(prefs::kProfileName,
289 "", 292 "",
290 PrefRegistrySyncable::SYNCABLE_PREF); 293 PrefRegistrySyncable::SYNCABLE_PREF);
291 registry->RegisterBooleanPref(prefs::kProfileIsManaged, 294 registry->RegisterBooleanPref(prefs::kProfileIsManaged,
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 base::FilePath* cache_path, 1185 base::FilePath* cache_path,
1183 int* max_size) { 1186 int* max_size) {
1184 DCHECK(cache_path); 1187 DCHECK(cache_path);
1185 DCHECK(max_size); 1188 DCHECK(max_size);
1186 base::FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); 1189 base::FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir));
1187 if (!path.empty()) 1190 if (!path.empty())
1188 *cache_path = path; 1191 *cache_path = path;
1189 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1192 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1190 prefs_->GetInteger(prefs::kDiskCacheSize); 1193 prefs_->GetInteger(prefs::kDiskCacheSize);
1191 } 1194 }
OLDNEW
« no previous file with comments | « chrome/browser/policy/configuration_policy_handler_list.cc ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698