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

Side by Side Diff: chrome/browser/ui/browser_ui_prefs.cc

Issue 10911283: Implement 'Do Not Track' header (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT Created 8 years, 3 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/ui/browser_ui_prefs.h" 5 #include "chrome/browser/ui/browser_ui_prefs.h"
6 6
7 #include "chrome/browser/prefs/pref_service.h" 7 #include "chrome/browser/prefs/pref_service.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/common/pref_names.h" 9 #include "chrome/common/pref_names.h"
10 10
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 PrefService::UNSYNCABLE_PREF); 134 PrefService::UNSYNCABLE_PREF);
135 prefs->RegisterBooleanPref(prefs::kImportHomepage, 135 prefs->RegisterBooleanPref(prefs::kImportHomepage,
136 true, 136 true,
137 PrefService::UNSYNCABLE_PREF); 137 PrefService::UNSYNCABLE_PREF);
138 prefs->RegisterBooleanPref(prefs::kImportSearchEngine, 138 prefs->RegisterBooleanPref(prefs::kImportSearchEngine,
139 true, 139 true,
140 PrefService::UNSYNCABLE_PREF); 140 PrefService::UNSYNCABLE_PREF);
141 prefs->RegisterBooleanPref(prefs::kImportSavedPasswords, 141 prefs->RegisterBooleanPref(prefs::kImportSavedPasswords,
142 true, 142 true,
143 PrefService::UNSYNCABLE_PREF); 143 PrefService::UNSYNCABLE_PREF);
144 prefs->RegisterBooleanPref(prefs::kEnableDoNotTrack,
145 false,
146 PrefService::SYNCABLE_PREF);
144 147
145 // Dictionaries to keep track of default tasks in the file browser. 148 // Dictionaries to keep track of default tasks in the file browser.
146 prefs->RegisterDictionaryPref(prefs::kDefaultTasksByMimeType, 149 prefs->RegisterDictionaryPref(prefs::kDefaultTasksByMimeType,
147 PrefService::SYNCABLE_PREF); 150 PrefService::SYNCABLE_PREF);
148 prefs->RegisterDictionaryPref(prefs::kDefaultTasksBySuffix, 151 prefs->RegisterDictionaryPref(prefs::kDefaultTasksBySuffix,
149 PrefService::SYNCABLE_PREF); 152 PrefService::SYNCABLE_PREF);
150 153
151 // We need to register the type of these preferences in order to query 154 // We need to register the type of these preferences in order to query
152 // them even though they're only typically controlled via policy. 155 // them even though they're only typically controlled via policy.
153 prefs->RegisterBooleanPref(prefs::kPluginsAllowOutdated, 156 prefs->RegisterBooleanPref(prefs::kPluginsAllowOutdated,
(...skipping 14 matching lines...) Expand all
168 window_pref.append(app_name); 171 window_pref.append(app_name);
169 PrefService* prefs = profile->GetPrefs(); 172 PrefService* prefs = profile->GetPrefs();
170 if (!prefs->FindPreference(window_pref.c_str())) { 173 if (!prefs->FindPreference(window_pref.c_str())) {
171 prefs->RegisterDictionaryPref(window_pref.c_str(), 174 prefs->RegisterDictionaryPref(window_pref.c_str(),
172 PrefService::UNSYNCABLE_PREF); 175 PrefService::UNSYNCABLE_PREF);
173 } 176 }
174 } 177 }
175 178
176 179
177 } // namespace chrome 180 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/options_bundle.js ('k') | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698