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

Side by Side Diff: chrome/browser/content_settings/content_settings_policy_provider.cc

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 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 | 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/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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 CONTENT_SETTINGS_TYPE_NOTIFICATIONS, 110 CONTENT_SETTINGS_TYPE_NOTIFICATIONS,
111 CONTENT_SETTING_BLOCK 111 CONTENT_SETTING_BLOCK
112 } 112 }
113 }; 113 };
114 114
115 } // namespace 115 } // namespace
116 116
117 namespace content_settings { 117 namespace content_settings {
118 118
119 // static 119 // static
120 void PolicyProvider::RegisterUserPrefs( 120 void PolicyProvider::RegisterProfilePrefs(
121 user_prefs::PrefRegistrySyncable* registry) { 121 user_prefs::PrefRegistrySyncable* registry) {
122 registry->RegisterListPref(prefs::kManagedAutoSelectCertificateForUrls, 122 registry->RegisterListPref(prefs::kManagedAutoSelectCertificateForUrls,
123 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 123 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
124 registry->RegisterListPref(prefs::kManagedCookiesAllowedForUrls, 124 registry->RegisterListPref(prefs::kManagedCookiesAllowedForUrls,
125 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 125 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
126 registry->RegisterListPref(prefs::kManagedCookiesBlockedForUrls, 126 registry->RegisterListPref(prefs::kManagedCookiesBlockedForUrls,
127 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 127 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
128 registry->RegisterListPref(prefs::kManagedCookiesSessionOnlyForUrls, 128 registry->RegisterListPref(prefs::kManagedCookiesSessionOnlyForUrls,
129 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 129 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
130 registry->RegisterListPref(prefs::kManagedImagesAllowedForUrls, 130 registry->RegisterListPref(prefs::kManagedImagesAllowedForUrls,
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 ReadManagedDefaultSettings(); 482 ReadManagedDefaultSettings();
483 } 483 }
484 484
485 NotifyObservers(ContentSettingsPattern(), 485 NotifyObservers(ContentSettingsPattern(),
486 ContentSettingsPattern(), 486 ContentSettingsPattern(),
487 CONTENT_SETTINGS_TYPE_DEFAULT, 487 CONTENT_SETTINGS_TYPE_DEFAULT,
488 std::string()); 488 std::string());
489 } 489 }
490 490
491 } // namespace content_settings 491 } // namespace content_settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698