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

Side by Side Diff: chrome/browser/policy/configuration_policy_handler_list.cc

Issue 10692110: screenshot disabling policy (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed comments (2), hooking into GrabWindowSnapshot instead of ChromeShellDelegate, rebased on … Created 8 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 (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/policy/configuration_policy_handler_list.h" 5 #include "chrome/browser/policy/configuration_policy_handler_list.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/policy/configuration_policy_handler.h" 9 #include "chrome/browser/policy/configuration_policy_handler.h"
10 #include "chrome/browser/policy/policy_error_map.h" 10 #include "chrome/browser/policy/policy_error_map.h"
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 Value::TYPE_BOOLEAN }, 292 Value::TYPE_BOOLEAN },
293 { key::kChromeOsReleaseChannel, 293 { key::kChromeOsReleaseChannel,
294 prefs::kChromeOsReleaseChannel, 294 prefs::kChromeOsReleaseChannel,
295 Value::TYPE_STRING }, 295 Value::TYPE_STRING },
296 { key::kGDataDisabled, 296 { key::kGDataDisabled,
297 prefs::kDisableGData, 297 prefs::kDisableGData,
298 Value::TYPE_BOOLEAN }, 298 Value::TYPE_BOOLEAN },
299 { key::kGDataDisabledOverCellular, 299 { key::kGDataDisabledOverCellular,
300 prefs::kDisableGDataOverCellular, 300 prefs::kDisableGDataOverCellular,
301 Value::TYPE_BOOLEAN }, 301 Value::TYPE_BOOLEAN },
302 { key::kDisableScreenshots,
303 prefs::kDisableScreenshots,
304 Value::TYPE_BOOLEAN },
302 #endif // defined(OS_CHROMEOS) 305 #endif // defined(OS_CHROMEOS)
303 306
304 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 307 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
305 { key::kBackgroundModeEnabled, 308 { key::kBackgroundModeEnabled,
306 prefs::kBackgroundModeEnabled, 309 prefs::kBackgroundModeEnabled,
307 Value::TYPE_BOOLEAN }, 310 Value::TYPE_BOOLEAN },
308 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 311 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
309 }; 312 };
310 313
311 } // namespace 314 } // namespace
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 } 389 }
387 390
388 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 391 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
389 PolicyMap* policies) const { 392 PolicyMap* policies) const {
390 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 393 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
391 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 394 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
392 (*handler)->PrepareForDisplaying(policies); 395 (*handler)->PrepareForDisplaying(policies);
393 } 396 }
394 397
395 } // namespace policy 398 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698