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

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

Issue 11418114: Add policy for ash launcher auto-hide behavior (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed- Rebased. Created 8 years 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/prefs/pref_value_map.h" 7 #include "base/prefs/pref_value_map.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/policy/configuration_policy_handler.h" 10 #include "chrome/browser/policy/configuration_policy_handler.h"
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 Value::TYPE_BOOLEAN }, 328 Value::TYPE_BOOLEAN },
329 { key::kAudioOutputAllowed, 329 { key::kAudioOutputAllowed,
330 prefs::kAudioOutputAllowed, 330 prefs::kAudioOutputAllowed,
331 Value::TYPE_BOOLEAN }, 331 Value::TYPE_BOOLEAN },
332 { key::kAudioCaptureAllowed, 332 { key::kAudioCaptureAllowed,
333 prefs::kAudioCaptureAllowed, 333 prefs::kAudioCaptureAllowed,
334 Value::TYPE_BOOLEAN }, 334 Value::TYPE_BOOLEAN },
335 { key::kShowLogoutButtonInTray, 335 { key::kShowLogoutButtonInTray,
336 prefs::kShowLogoutButtonInTray, 336 prefs::kShowLogoutButtonInTray,
337 Value::TYPE_BOOLEAN }, 337 Value::TYPE_BOOLEAN },
338 { key::kShelfAutoHideBehavior,
339 prefs::kShelfAutoHideBehaviorLocal,
340 Value::TYPE_STRING },
338 #endif // defined(OS_CHROMEOS) 341 #endif // defined(OS_CHROMEOS)
339 342
340 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 343 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
341 { key::kBackgroundModeEnabled, 344 { key::kBackgroundModeEnabled,
342 prefs::kBackgroundModeEnabled, 345 prefs::kBackgroundModeEnabled,
343 Value::TYPE_BOOLEAN }, 346 Value::TYPE_BOOLEAN },
344 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 347 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
345 }; 348 };
346 349
347 } // namespace 350 } // namespace
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 } 425 }
423 426
424 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 427 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
425 PolicyMap* policies) const { 428 PolicyMap* policies) const {
426 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 429 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
427 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 430 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
428 (*handler)->PrepareForDisplaying(policies); 431 (*handler)->PrepareForDisplaying(policies);
429 } 432 }
430 433
431 } // namespace policy 434 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698