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

Side by Side Diff: components/content_settings/core/common/pref_names.cc

Issue 1252973002: Remove the migration code from content_settings::DefaultProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the media migration code. Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/content_settings/core/common/pref_names.h" 5 #include "components/content_settings/core/common/pref_names.h"
6 6
7 namespace prefs { 7 namespace prefs {
8 8
9 // Boolean that is true if we should unconditionally block third-party cookies, 9 // Boolean that is true if we should unconditionally block third-party cookies,
10 // regardless of other content settings. 10 // regardless of other content settings.
11 const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies"; 11 const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies";
12 12
13 // Version of the pattern format used to define content settings. 13 // Version of the pattern format used to define content settings.
14 const char kContentSettingsVersion[] = "profile.content_settings.pref_version"; 14 const char kContentSettingsVersion[] = "profile.content_settings.pref_version";
15 15
16 // Patterns for mapping origins to origin related settings. Default settings 16 // Patterns for mapping origins to origin related settings. Default settings
17 // will be applied to origins that don't match any of the patterns. The pattern 17 // will be applied to origins that don't match any of the patterns. The pattern
18 // format used is defined by kContentSettingsVersion. 18 // format used is defined by kContentSettingsVersion.
19 const char kContentSettingsPatternPairs[] = 19 const char kContentSettingsPatternPairs[] =
20 "profile.content_settings.pattern_pairs"; 20 "profile.content_settings.pattern_pairs";
21 21
22 // Integer that specifies the index of the tab the user was on when they 22 // Integer that specifies the index of the tab the user was on when they
23 // last visited the content settings window. 23 // last visited the content settings window.
24 const char kContentSettingsWindowLastTabIndex[] = 24 const char kContentSettingsWindowLastTabIndex[] =
25 "content_settings_window.last_tab_index"; 25 "content_settings_window.last_tab_index";
26 26
27 // Dictionary of content settings applied to all hosts by default.
28 // TODO(msramek): Deprecated. Use the individual preferences below.
29 const char kDefaultContentSettings[] = "profile.default_content_settings";
30
31 // Whether |kDefaultContentSettings| has already been migrated to
32 // |kDefault<type>Setting| prefs.
33 const char kMigratedDefaultContentSettings[] =
34 "profile.migrated_default_content_settings";
battre 2015/07/27 08:32:36 I think there is traditionally one more step: Mov
msramek 2015/07/27 09:13:27 Done. But it cannot be called from static Register
35
36 // Preferences storing the default values for individual content settings. 27 // Preferences storing the default values for individual content settings.
37 const char kDefaultCookiesSetting[] = 28 const char kDefaultCookiesSetting[] =
38 "profile.default_content_setting_values.cookies"; 29 "profile.default_content_setting_values.cookies";
39 const char kDefaultImagesSetting[] = 30 const char kDefaultImagesSetting[] =
40 "profile.default_content_setting_values.images"; 31 "profile.default_content_setting_values.images";
41 const char kDefaultJavaScriptSetting[] = 32 const char kDefaultJavaScriptSetting[] =
42 "profile.default_content_setting_values.javascript"; 33 "profile.default_content_setting_values.javascript";
43 const char kDefaultPluginsSetting[] = 34 const char kDefaultPluginsSetting[] =
44 "profile.default_content_setting_values.plugins"; 35 "profile.default_content_setting_values.plugins";
45 const char kDefaultPopupsSetting[] = 36 const char kDefaultPopupsSetting[] =
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 const char kManagedPopupsBlockedForUrls[] = 194 const char kManagedPopupsBlockedForUrls[] =
204 "profile.managed_popups_blocked_for_urls"; 195 "profile.managed_popups_blocked_for_urls";
205 const char kManagedNotificationsAllowedForUrls[] = 196 const char kManagedNotificationsAllowedForUrls[] =
206 "profile.managed_notifications_allowed_for_urls"; 197 "profile.managed_notifications_allowed_for_urls";
207 const char kManagedNotificationsBlockedForUrls[] = 198 const char kManagedNotificationsBlockedForUrls[] =
208 "profile.managed_notifications_blocked_for_urls"; 199 "profile.managed_notifications_blocked_for_urls";
209 const char kManagedAutoSelectCertificateForUrls[] = 200 const char kManagedAutoSelectCertificateForUrls[] =
210 "profile.managed_auto_select_certificate_for_urls"; 201 "profile.managed_auto_select_certificate_for_urls";
211 202
212 } // namespace prefs 203 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698