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

Side by Side Diff: chrome/browser/profile.cc

Issue 115910: Allow themes to change the background of the new tab page.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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
« no previous file with comments | « chrome/browser/dom_ui/new_tab_ui.cc ('k') | chrome/browser/resources/new_tab.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/new_tab_ui.cc ('k') | chrome/browser/resources/new_tab.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698