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

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

Issue 10808006: Move printing.* prefs from local state to profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Retired PrintPreviewUnitTestBase class. Created 8 years, 5 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/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/environment.h" 10 #include "base/environment.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 PrefService::UNSYNCABLE_PREF); 214 PrefService::UNSYNCABLE_PREF);
215 prefs->RegisterIntegerPref(prefs::kProfileAvatarIndex, 215 prefs->RegisterIntegerPref(prefs::kProfileAvatarIndex,
216 -1, 216 -1,
217 PrefService::SYNCABLE_PREF); 217 PrefService::SYNCABLE_PREF);
218 prefs->RegisterStringPref(prefs::kProfileName, 218 prefs->RegisterStringPref(prefs::kProfileName,
219 "", 219 "",
220 PrefService::SYNCABLE_PREF); 220 PrefService::SYNCABLE_PREF);
221 prefs->RegisterStringPref(prefs::kHomePage, 221 prefs->RegisterStringPref(prefs::kHomePage,
222 std::string(), 222 std::string(),
223 PrefService::SYNCABLE_PREF); 223 PrefService::SYNCABLE_PREF);
224 #if defined(ENABLE_PRINTING)
225 prefs->RegisterBooleanPref(prefs::kPrintingEnabled,
Albert Bodenhamer 2012/07/18 17:00:10 PrintingEnabled is driven by device policy. Does
bartfab (slow) 2012/07/18 17:18:30 The pref exists as a vehicle for policy: Policy se
Albert Bodenhamer 2012/07/18 17:23:20 Sounds good. On 2012/07/18 17:18:30, bartfab wrote
226 true,
227 PrefService::UNSYNCABLE_PREF);
228 #endif
229 prefs->RegisterBooleanPref(prefs::kPrintPreviewDisabled,
230 #if defined(GOOGLE_CHROME_BUILD)
231 false,
232 #else
233 true,
234 #endif
235 PrefService::UNSYNCABLE_PREF);
224 236
225 // Initialize the cache prefs. 237 // Initialize the cache prefs.
226 prefs->RegisterFilePathPref(prefs::kDiskCacheDir, 238 prefs->RegisterFilePathPref(prefs::kDiskCacheDir,
227 FilePath(), 239 FilePath(),
228 PrefService::UNSYNCABLE_PREF); 240 PrefService::UNSYNCABLE_PREF);
229 prefs->RegisterIntegerPref(prefs::kDiskCacheSize, 241 prefs->RegisterIntegerPref(prefs::kDiskCacheSize,
230 0, 242 0,
231 PrefService::UNSYNCABLE_PREF); 243 PrefService::UNSYNCABLE_PREF);
232 prefs->RegisterIntegerPref(prefs::kMediaCacheSize, 244 prefs->RegisterIntegerPref(prefs::kMediaCacheSize,
233 0, 245 0,
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
1101 if (!path.empty()) 1113 if (!path.empty())
1102 *cache_path = path; 1114 *cache_path = path;
1103 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1115 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1104 prefs_->GetInteger(prefs::kDiskCacheSize); 1116 prefs_->GetInteger(prefs::kDiskCacheSize);
1105 } 1117 }
1106 1118
1107 base::Callback<ChromeURLDataManagerBackend*(void)> 1119 base::Callback<ChromeURLDataManagerBackend*(void)>
1108 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { 1120 ProfileImpl::GetChromeURLDataManagerBackendGetter() const {
1109 return io_data_.GetChromeURLDataManagerBackendGetter(); 1121 return io_data_.GetChromeURLDataManagerBackendGetter();
1110 } 1122 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698