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

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

Issue 10873085: Implement two new policies to control muting the audio I/O. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to ToT. Created 8 years, 3 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/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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 Value::TYPE_STRING }, 313 Value::TYPE_STRING },
314 { key::kGDataDisabled, 314 { key::kGDataDisabled,
315 prefs::kDisableGData, 315 prefs::kDisableGData,
316 Value::TYPE_BOOLEAN }, 316 Value::TYPE_BOOLEAN },
317 { key::kGDataDisabledOverCellular, 317 { key::kGDataDisabledOverCellular,
318 prefs::kDisableGDataOverCellular, 318 prefs::kDisableGDataOverCellular,
319 Value::TYPE_BOOLEAN }, 319 Value::TYPE_BOOLEAN },
320 { key::kExternalStorageDisabled, 320 { key::kExternalStorageDisabled,
321 prefs::kExternalStorageDisabled, 321 prefs::kExternalStorageDisabled,
322 Value::TYPE_BOOLEAN }, 322 Value::TYPE_BOOLEAN },
323 { key::kAudioOutputAllowed,
324 prefs::kAudioOutputAllowed,
325 Value::TYPE_BOOLEAN },
326 { key::kAudioCaptureAllowed,
327 prefs::kAudioCaptureAllowed,
328 Value::TYPE_BOOLEAN },
323 #endif // defined(OS_CHROMEOS) 329 #endif // defined(OS_CHROMEOS)
324 330
325 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 331 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
326 { key::kBackgroundModeEnabled, 332 { key::kBackgroundModeEnabled,
327 prefs::kBackgroundModeEnabled, 333 prefs::kBackgroundModeEnabled,
328 Value::TYPE_BOOLEAN }, 334 Value::TYPE_BOOLEAN },
329 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 335 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
330 }; 336 };
331 337
332 } // namespace 338 } // namespace
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 } 413 }
408 414
409 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 415 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
410 PolicyMap* policies) const { 416 PolicyMap* policies) const {
411 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 417 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
412 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 418 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
413 (*handler)->PrepareForDisplaying(policies); 419 (*handler)->PrepareForDisplaying(policies);
414 } 420 }
415 421
416 } // namespace policy 422 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/audio/audio_mixer_cras.cc ('k') | chrome/browser/policy/configuration_policy_pref_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698