OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/content_settings/content_settings_policy_provider.h" | 5 #include "chrome/browser/content_settings/content_settings_policy_provider.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 ContentSetting setting; | 43 ContentSetting setting; |
44 }; | 44 }; |
45 | 45 |
46 const PrefsForManagedContentSettingsMapEntry | 46 const PrefsForManagedContentSettingsMapEntry |
47 kPrefsForManagedContentSettingsMap[] = { | 47 kPrefsForManagedContentSettingsMap[] = { |
48 { | 48 { |
49 prefs::kManagedCookiesAllowedForUrls, | 49 prefs::kManagedCookiesAllowedForUrls, |
50 CONTENT_SETTINGS_TYPE_COOKIES, | 50 CONTENT_SETTINGS_TYPE_COOKIES, |
51 CONTENT_SETTING_ALLOW | 51 CONTENT_SETTING_ALLOW |
52 }, { | 52 }, { |
53 prefs::kManagedCookiesAllowedForUrls, | |
54 CONTENT_SETTINGS_TYPE_PERMANENT_COOKIES, | |
55 CONTENT_SETTING_ALLOW | |
56 }, { | |
57 prefs::kManagedCookiesSessionOnlyForUrls, | |
58 CONTENT_SETTINGS_TYPE_COOKIES, | |
59 CONTENT_SETTING_ALLOW | |
60 }, { | |
53 prefs::kManagedCookiesSessionOnlyForUrls, | 61 prefs::kManagedCookiesSessionOnlyForUrls, |
Bernhard Bauer
2011/09/14 16:01:36
Wait, this doesn't seem quite right. Some of the p
| |
54 CONTENT_SETTINGS_TYPE_COOKIES, | 62 CONTENT_SETTINGS_TYPE_PERMANENT_COOKIES, |
55 CONTENT_SETTING_SESSION_ONLY | 63 CONTENT_SETTING_BLOCK |
56 }, { | 64 }, { |
57 prefs::kManagedCookiesBlockedForUrls, | 65 prefs::kManagedCookiesBlockedForUrls, |
58 CONTENT_SETTINGS_TYPE_COOKIES, | 66 CONTENT_SETTINGS_TYPE_COOKIES, |
59 CONTENT_SETTING_BLOCK | 67 CONTENT_SETTING_BLOCK |
60 }, { | 68 }, { |
61 prefs::kManagedImagesAllowedForUrls, | 69 prefs::kManagedImagesAllowedForUrls, |
62 CONTENT_SETTINGS_TYPE_IMAGES, | 70 CONTENT_SETTINGS_TYPE_IMAGES, |
63 CONTENT_SETTING_ALLOW | 71 CONTENT_SETTING_ALLOW |
64 }, { | 72 }, { |
65 prefs::kManagedImagesBlockedForUrls, | 73 prefs::kManagedImagesBlockedForUrls, |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
542 ContentSettingsPattern(), | 550 ContentSettingsPattern(), |
543 CONTENT_SETTINGS_TYPE_DEFAULT, | 551 CONTENT_SETTINGS_TYPE_DEFAULT, |
544 std::string()); | 552 std::string()); |
545 } | 553 } |
546 } else { | 554 } else { |
547 NOTREACHED() << "Unexpected notification"; | 555 NOTREACHED() << "Unexpected notification"; |
548 } | 556 } |
549 } | 557 } |
550 | 558 |
551 } // namespace content_settings | 559 } // namespace content_settings |
OLD | NEW |