| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 } // namespace | 71 } // namespace |
| 72 | 72 |
| 73 // static | 73 // static |
| 74 const ProfileId Profile::InvalidProfileId = static_cast<ProfileId>(0); | 74 const ProfileId Profile::InvalidProfileId = static_cast<ProfileId>(0); |
| 75 | 75 |
| 76 // static | 76 // static |
| 77 void Profile::RegisterUserPrefs(PrefService* prefs) { | 77 void Profile::RegisterUserPrefs(PrefService* prefs) { |
| 78 prefs->RegisterBooleanPref(prefs::kSearchSuggestEnabled, true); | 78 prefs->RegisterBooleanPref(prefs::kSearchSuggestEnabled, true); |
| 79 prefs->RegisterBooleanPref(prefs::kSessionExitedCleanly, true); | 79 prefs->RegisterBooleanPref(prefs::kSessionExitedCleanly, true); |
| 80 prefs->RegisterBooleanPref(prefs::kSafeBrowsingEnabled, true); | 80 prefs->RegisterBooleanPref(prefs::kSafeBrowsingEnabled, true); |
| 81 prefs->RegisterBooleanPref(prefs::kSafeBrowsingReportingEnabled, false); |
| 81 // TODO(estade): IDS_SPELLCHECK_DICTIONARY should be an ASCII string. | 82 // TODO(estade): IDS_SPELLCHECK_DICTIONARY should be an ASCII string. |
| 82 prefs->RegisterLocalizedStringPref(prefs::kSpellCheckDictionary, | 83 prefs->RegisterLocalizedStringPref(prefs::kSpellCheckDictionary, |
| 83 IDS_SPELLCHECK_DICTIONARY); | 84 IDS_SPELLCHECK_DICTIONARY); |
| 84 prefs->RegisterBooleanPref(prefs::kEnableSpellCheck, true); | 85 prefs->RegisterBooleanPref(prefs::kEnableSpellCheck, true); |
| 85 prefs->RegisterBooleanPref(prefs::kEnableAutoSpellCorrect, true); | 86 prefs->RegisterBooleanPref(prefs::kEnableAutoSpellCorrect, true); |
| 86 #if defined(TOOLKIT_USES_GTK) | 87 #if defined(TOOLKIT_USES_GTK) |
| 87 prefs->RegisterBooleanPref(prefs::kUsesSystemTheme, | 88 prefs->RegisterBooleanPref(prefs::kUsesSystemTheme, |
| 88 GtkThemeProvider::DefaultUsesSystemTheme()); | 89 GtkThemeProvider::DefaultUsesSystemTheme()); |
| 89 #endif | 90 #endif |
| 90 prefs->RegisterFilePathPref(prefs::kCurrentThemePackFilename, FilePath()); | 91 prefs->RegisterFilePathPref(prefs::kCurrentThemePackFilename, FilePath()); |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 | 634 |
| 634 // The file_system context for this profile. | 635 // The file_system context for this profile. |
| 635 scoped_refptr<BrowserFileSystemContext> browser_file_system_context_; | 636 scoped_refptr<BrowserFileSystemContext> browser_file_system_context_; |
| 636 | 637 |
| 637 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); | 638 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); |
| 638 }; | 639 }; |
| 639 | 640 |
| 640 Profile* Profile::CreateOffTheRecordProfile() { | 641 Profile* Profile::CreateOffTheRecordProfile() { |
| 641 return new OffTheRecordProfileImpl(this); | 642 return new OffTheRecordProfileImpl(this); |
| 642 } | 643 } |
| OLD | NEW |