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

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: Rebased just in case as the CL is a few days old now plus I got my branches all mixed up a bit. 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 PrefService::UNSYNCABLE_PREF); 215 PrefService::UNSYNCABLE_PREF);
216 prefs->RegisterIntegerPref(prefs::kProfileAvatarIndex, 216 prefs->RegisterIntegerPref(prefs::kProfileAvatarIndex,
217 -1, 217 -1,
218 PrefService::SYNCABLE_PREF); 218 PrefService::SYNCABLE_PREF);
219 prefs->RegisterStringPref(prefs::kProfileName, 219 prefs->RegisterStringPref(prefs::kProfileName,
220 "", 220 "",
221 PrefService::SYNCABLE_PREF); 221 PrefService::SYNCABLE_PREF);
222 prefs->RegisterStringPref(prefs::kHomePage, 222 prefs->RegisterStringPref(prefs::kHomePage,
223 std::string(), 223 std::string(),
224 PrefService::SYNCABLE_PREF); 224 PrefService::SYNCABLE_PREF);
225 #if defined(ENABLE_PRINTING)
226 prefs->RegisterBooleanPref(prefs::kPrintingEnabled,
227 true,
228 PrefService::UNSYNCABLE_PREF);
229 #endif
230 prefs->RegisterBooleanPref(prefs::kPrintPreviewDisabled,
231 #if defined(GOOGLE_CHROME_BUILD)
232 false,
233 #else
234 true,
235 #endif
236 PrefService::UNSYNCABLE_PREF);
225 237
226 // Initialize the cache prefs. 238 // Initialize the cache prefs.
227 prefs->RegisterFilePathPref(prefs::kDiskCacheDir, 239 prefs->RegisterFilePathPref(prefs::kDiskCacheDir,
228 FilePath(), 240 FilePath(),
229 PrefService::UNSYNCABLE_PREF); 241 PrefService::UNSYNCABLE_PREF);
230 prefs->RegisterIntegerPref(prefs::kDiskCacheSize, 242 prefs->RegisterIntegerPref(prefs::kDiskCacheSize,
231 0, 243 0,
232 PrefService::UNSYNCABLE_PREF); 244 PrefService::UNSYNCABLE_PREF);
233 prefs->RegisterIntegerPref(prefs::kMediaCacheSize, 245 prefs->RegisterIntegerPref(prefs::kMediaCacheSize,
234 0, 246 0,
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 if (!path.empty()) 1086 if (!path.empty())
1075 *cache_path = path; 1087 *cache_path = path;
1076 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1088 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1077 prefs_->GetInteger(prefs::kDiskCacheSize); 1089 prefs_->GetInteger(prefs::kDiskCacheSize);
1078 } 1090 }
1079 1091
1080 base::Callback<ChromeURLDataManagerBackend*(void)> 1092 base::Callback<ChromeURLDataManagerBackend*(void)>
1081 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { 1093 ProfileImpl::GetChromeURLDataManagerBackendGetter() const {
1082 return io_data_.GetChromeURLDataManagerBackendGetter(); 1094 return io_data_.GetChromeURLDataManagerBackendGetter();
1083 } 1095 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/printing_message_filter.cc ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698