OLD | NEW |
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/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/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 NULL, // No policy for default value of fullscreen requests | 37 NULL, // No policy for default value of fullscreen requests |
38 NULL, // No policy for default value of mouse lock requests | 38 NULL, // No policy for default value of mouse lock requests |
39 NULL, // No policy for default value of mixed script blocking | 39 NULL, // No policy for default value of mixed script blocking |
40 prefs::kManagedDefaultMediaStreamSetting, | 40 prefs::kManagedDefaultMediaStreamSetting, |
41 NULL, // No policy for default value of media stream mic | 41 NULL, // No policy for default value of media stream mic |
42 NULL, // No policy for default value of media stream camera | 42 NULL, // No policy for default value of media stream camera |
43 NULL, // No policy for default value of protocol handlers | 43 NULL, // No policy for default value of protocol handlers |
44 NULL, // No policy for default value of PPAPI broker | 44 NULL, // No policy for default value of PPAPI broker |
45 NULL, // No policy for default value of multiple automatic downloads | 45 NULL, // No policy for default value of multiple automatic downloads |
46 NULL, // No policy for default value of MIDI system exclusive requests | 46 NULL, // No policy for default value of MIDI system exclusive requests |
| 47 NULL, // No policy for default value of push messaging requests |
47 #if defined(OS_WIN) | 48 #if defined(OS_WIN) |
48 NULL, // No policy for default value of "switch to desktop" | 49 NULL, // No policy for default value of "switch to desktop" |
49 #elif defined(OS_ANDROID) || defined(OS_CHROMEOS) | 50 #elif defined(OS_ANDROID) || defined(OS_CHROMEOS) |
50 NULL, // No policy for default value of protected media identifier | 51 NULL, // No policy for default value of protected media identifier |
51 #endif | 52 #endif |
52 #if defined(OS_ANDROID) | 53 #if defined(OS_ANDROID) |
53 NULL, // No policy for default value of app banners | 54 NULL, // No policy for default value of app banners |
54 #endif | 55 #endif |
55 }; | 56 }; |
56 COMPILE_ASSERT(arraysize(kPrefToManageType) == CONTENT_SETTINGS_NUM_TYPES, | 57 COMPILE_ASSERT(arraysize(kPrefToManageType) == CONTENT_SETTINGS_NUM_TYPES, |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 ReadManagedDefaultSettings(); | 492 ReadManagedDefaultSettings(); |
492 } | 493 } |
493 | 494 |
494 NotifyObservers(ContentSettingsPattern(), | 495 NotifyObservers(ContentSettingsPattern(), |
495 ContentSettingsPattern(), | 496 ContentSettingsPattern(), |
496 CONTENT_SETTINGS_TYPE_DEFAULT, | 497 CONTENT_SETTINGS_TYPE_DEFAULT, |
497 std::string()); | 498 std::string()); |
498 } | 499 } |
499 | 500 |
500 } // namespace content_settings | 501 } // namespace content_settings |
OLD | NEW |