| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/profile.h" | 5 #include "chrome/browser/profile.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 prefs->RegisterBooleanPref(prefs::kSafeBrowsingEnabled, true); | 68 prefs->RegisterBooleanPref(prefs::kSafeBrowsingEnabled, true); |
| 69 // TODO(estade): IDS_SPELLCHECK_DICTIONARY should be an ASCII string. | 69 // TODO(estade): IDS_SPELLCHECK_DICTIONARY should be an ASCII string. |
| 70 prefs->RegisterLocalizedStringPref(prefs::kSpellCheckDictionary, | 70 prefs->RegisterLocalizedStringPref(prefs::kSpellCheckDictionary, |
| 71 IDS_SPELLCHECK_DICTIONARY); | 71 IDS_SPELLCHECK_DICTIONARY); |
| 72 prefs->RegisterBooleanPref(prefs::kEnableSpellCheck, true); | 72 prefs->RegisterBooleanPref(prefs::kEnableSpellCheck, true); |
| 73 prefs->RegisterBooleanPref(prefs::kEnableUserScripts, false); | 73 prefs->RegisterBooleanPref(prefs::kEnableUserScripts, false); |
| 74 prefs->RegisterStringPref(prefs::kCurrentThemeID, L""); | 74 prefs->RegisterStringPref(prefs::kCurrentThemeID, L""); |
| 75 prefs->RegisterDictionaryPref(prefs::kCurrentThemeImages); | 75 prefs->RegisterDictionaryPref(prefs::kCurrentThemeImages); |
| 76 prefs->RegisterDictionaryPref(prefs::kCurrentThemeColors); | 76 prefs->RegisterDictionaryPref(prefs::kCurrentThemeColors); |
| 77 prefs->RegisterDictionaryPref(prefs::kCurrentThemeTints); | 77 prefs->RegisterDictionaryPref(prefs::kCurrentThemeTints); |
| 78 prefs->RegisterDictionaryPref(prefs::kCurrentThemeDisplayProperties); |
| 78 prefs->RegisterBooleanPref(prefs::kEnableExtensions, false); | 79 prefs->RegisterBooleanPref(prefs::kEnableExtensions, false); |
| 79 } | 80 } |
| 80 | 81 |
| 81 // static | 82 // static |
| 82 Profile* Profile::CreateProfile(const FilePath& path) { | 83 Profile* Profile::CreateProfile(const FilePath& path) { |
| 83 return new ProfileImpl(path); | 84 return new ProfileImpl(path); |
| 84 } | 85 } |
| 85 | 86 |
| 86 // static | 87 // static |
| 87 URLRequestContext* Profile::GetDefaultRequestContext() { | 88 URLRequestContext* Profile::GetDefaultRequestContext() { |
| (...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 | 982 |
| 982 void ProfileImpl::StopCreateSessionServiceTimer() { | 983 void ProfileImpl::StopCreateSessionServiceTimer() { |
| 983 create_session_service_timer_.Stop(); | 984 create_session_service_timer_.Stop(); |
| 984 } | 985 } |
| 985 | 986 |
| 986 #ifdef CHROME_PERSONALIZATION | 987 #ifdef CHROME_PERSONALIZATION |
| 987 ProfilePersonalization* ProfileImpl::GetProfilePersonalization() { | 988 ProfilePersonalization* ProfileImpl::GetProfilePersonalization() { |
| 988 return personalization_.get(); | 989 return personalization_.get(); |
| 989 } | 990 } |
| 990 #endif | 991 #endif |
| OLD | NEW |